Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- GetPlaerNameEx(nome[])
- {
- static
- name[MAX_PLAYER_NAME],
- Max = GetMaxPlayers(),
- x;
- for(x = 0; x != Max; x++)
- {
- if(IsPlayerConnected(x))
- {
- GetPlayerName(x, name, sizeof(name));
- if(strfind(name, nome, true)) //se name = nome, o player está conectado!
- {
- return x;
- }
- }
- }
- return INVALID_PLAYER_ID;
- }
Advertisement
Add Comment
Please, Sign In to add comment