Jump to content
SSForum.net is back!

Recommended Posts

Posted (edited)

!@#$%^&*o,

 

Can someone tell me how I would go about programming a mervbot plugin to pm information to a specific name?

 

For example:

 

sendPrivate(p,"text")

 

How do I make p point to someone based only on their name?

Edited by Debugz
Posted

	_listnode <Player> *parse = playerlist->head;
while (parse)
{
Player *p = parse->item;
if (p->name == "bob") sendPrivate(p,"HEY BOB!");
parse = parse->next;
}

 

Am I getting close? Or is there an easier way?

 

Since the name wont change, I figured there would be a way to just to sendprivate to a variable, but so far i haven't been able to figure it out.

Posted

There's another function you can use, it's something like SendRemotePrivate(char * name, char * msg)

It's equivalent to pm'ing someone with :Debugz:hey there, what's up

Guest
This topic is now closed to further replies.
×
×
  • Create New...