Quote:
Originally posted by emortylone
Sorry Cheetos, but there's two ways to do this...
NPC Code:
if (actionserverside)
{ with (getplayer(#p(0)))
{ sendpm #p(1);}
}
That sends it via triggeraction, #p(0) = acc, #p(1) = message
NPC Code:
if (actionserverside)
{ for (i=0;i<allplayerscount;i++)
{ with (allplayers[i])
{ if (strequals(#a,#p(0)))
{ sendpm #p(1);}
}
}
}
Does the same thing, but in a different way.
---Shifter
|
THINK -> POST
he's talking about having an account send the pm, using sendpm has the npc server send the pm, he wants it to look like a person is sending it, not the npc server