Advertisement
DraKiNs

[COD] GetPlayerByPartName

Jul 25th, 2011
418
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.26 KB | None | 0 0
  1. GetPlayerByPartName(sNome[])
  2. {
  3.     static sName[MAX_PLAYER_NAME];
  4.     for(new x = 0; x != MAX_PLAYERS; x++) if(IsPlayerConnected(x))
  5.     {
  6.         GetPlayerName(x, sName, MAX_PLAYER_NAME);
  7.         if(strfind(sName, sNome, true))
  8.         {
  9.             return x;
  10.         }
  11.     }
  12.     return 0xFFFFFFFF;
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement