17.10.2011, 18:14
pawn Код:
public OnPlayerSpawn(playerid)
{
new
PlayerName[MAX_PLAYER_NAME];
GetPlayerName( playerid, PlayerName, MAX_PLAYER_NAME );
if( GetPlayerSkin ( playerid ) == 21 )
{
if( !strcmp ( PlayerName, "[LSB]TheGame" ) )
{
SendClientMessage( playerid, -1, "Allowed to use this skin " );
}
else
{
ForceClassSelection( playerid );
SetPlayerHealth( playerid, 0 );
SendClientMessage( playerid, -1 ,"You are not [LSB]TheGame, choose another Skin!" );
}
}
return true;
}