15.10.2011, 18:40
You need use GetPlayerName
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new PlayerName[24];
GetPlayerName(playerid, PlayerName, 24);
if(GetPlayerSkin(playerid) == 100)
{
if(strcmp(PlayerName,"radek",true) == 0)
{
SendClientMessage(playerid,0x33AA33AA, "-Ident-Hey ;)");
return 1;
}
else
{
SendClientMessage(playerid,0x33AA33AA, "-Ident-You can't choose this class.");
return 0;
}
}