13.09.2011, 23:41
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
new szName[ 24 ];
GetPlayerName( playerid, szName, 24 );
if ( GetPlayerSkin ( playerid ) == /*skin you want*/ )
{
if ( strcmp ( szName, "Swizzzy", true ) == 0 )
{
SendClientMessage( playerid, 0xffffffff, "permisson for this skin granted!");
}
else
{
SendClientMessage( playerid, 0xffffffff, "only swizzzy can use this skin");
return 0; /* return 0 means he won't spawn */
}
}
return 1;
}

