View Single Post
  #21  
Old 10-01-2002, 03:50 AM
Graal2001_NAT Graal2001_NAT is offline
Registered User
Join Date: Sep 2002
Posts: 241
Graal2001_NAT is on a distinguished road
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
__________________
GONE, BAI
Reply With Quote