03.04.2011, 15:25
the GetPlayerId stock
EDIT: Yes i printed look here [15:31:34] Owner = James_Cullen
pawn Код:
stock GetPlayerID(const PName[])
{
for(new i; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(i, pName, sizeof(pName));
if(strcmp(PName, pName, true)==0)
{
return i;
}
}
}
return -1;
}
EDIT: Yes i printed look here [15:31:34] Owner = James_Cullen