Advertisement
BernardoVieira

SendClientMessageEx

Apr 30th, 2011
476
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.42 KB | None | 0 0
  1. forward SendClientMessageEx(const playername[], color, const message[]);
  2. public SendClientMessageEx(const playername[], color, const message[])
  3. {
  4.     new i;
  5.     for(i=0;i<SLOTS_SERVER;i++)
  6.     {
  7.         new NomePlayer[MAX_PLAYER_NAME];
  8.         GetPlayerName(i,NomePlayer,sizeof(NomePlayer));
  9.         if(!strcmp(NomePlayer, playername, true, sizeof(NomePlayer)))
  10.         {
  11.             SendClientMessage(i, color, message);
  12.             return 1;
  13.         }
  14.     }
  15.     return 0;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement