09.03.2011, 20:17
(
Last edited by leandro123456; 09/03/2011 at 08:18 PM.
Reason: precisa de uma include
)
pawn Code:
stock GetPlayerNumber(numero)
{
for(new i = 0; i <= MAX_PLAYERS; ++i)
{
if(numero == PlayerInfo[i][numero])
{
new tnome[MAX_PLAYER_NAME];
GetPlayerName(i, tnome, sizeof(tnome) );
return GetPlayerID(tnome);
/* if(strcmp(tnome, i, true, strlen(i)) == 0)
{
return i;
}*/
}
}
return INVALID_PLAYER_ID; //ID Invбlido
}