08.12.2016, 22:32
Quote:
You doubt in the 'SA-MP Lead Scripter' code? How dare you?!
OT: Just use the specifier in the sscanf check, You can use both ID and player name in the sscanf's specifier 'u'. That if you are trying for example kick a player by his name. Why all that? Just use this; PHP код:
|
Quote:
Yep using 'u' makes lot more sense
![]() |
PHP код:
stock GetPlayerID(playername[])
{
for(new i=GetPlayerPoolSize(); i != -1; i--)
{
if(strcmp(GetPlayerName(i), playername, true, strlen(playername)) == 0) return i;
}
return INVALID_PLAYER_ID;
}