Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetPlayerByPartName(sNome[])
- {
- static sName[MAX_PLAYER_NAME];
- for(new x = 0; x != MAX_PLAYERS; x++) if(IsPlayerConnected(x))
- {
- GetPlayerName(x, sName, MAX_PLAYER_NAME);
- if(strfind(sName, sNome, true))
- {
- return x;
- }
- }
- return 0xFFFFFFFF;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement