02.04.2009, 11:16
Look at this code you need Password to use the Skin.
In Top oF script !
Under OnPlayerRequestClass(playerid, classid)
Under public OnPlayerRequestSpawn(playerid)
Under OnPlayerText Add This :
And That sould be It :P
In Top oF script !
Код:
new IsRequestingSpawn[MAX_PLAYERS];
Код:
IsRequestingSpawn[playerid] = 0;
Код:
if(GetPlayerSkin(playerid) == 165) // <<=== Change 'SkinID' to the id of the locked skin
{
GameTextForPlayer(playerid, "~r~Enter Pass...", 3000, 3);
IsRequestingSpawn[playerid] = 1;
return 0;
}
Код:
if(IsRequestingSpawn[playerid] == 1)
{
if(strcmp(text, "Apple", true)==0) // <<<< Change This Password!!
{
SpawnPlayer(playerid);
IsRequestingSpawn[playerid] = 0;
return 0;
}
else
{
GameTextForPlayer(playerid, "~r~Wrong Pass!", 2000, 3);
return 0;
}
}
return 1;

