07.08.2012, 14:51
pawn Код:
#include <a_samp>
public OnPlayerRequestSpawn(playerid)
{
if( GetPlayerSkin( playerid ) == CJ SKIN HERE ) // compare the skin you got with the CJ skin
{
new pName[24];
GetPlayerName( playerid, pName, sizeof pName ); // getting player name
if( !strcmp( pName, "Name here", false ) ) // change 'name here' to the name you want to not lock this skin for + comparing your current name with the second name
{
return 1; // allow the player to spawn
}
else // names doent match
{
SendClientMessage( playerid, -1, "Skin is locked. " );
return 0; // dont let the player spawn
}
}
return 1;
}

