02.04.2014, 08:15
Quote:
Thanks for tje reply but I wasn't talking about an command. I ment onplayerrequestspawn
|
pawn Код:
//Top of script, making a global variable
new donor[MAX_PLAYERS];
//Under OnGameModeInit/FilterScriptInit
AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); //Just an extra class for the donor spawn
public OnPlayerRequestClass(playerid,classid)
{
if(classid == 3 && donor[playerid] == 1) //Change 3 to what ever class id donor one is
{
//Blah Blah Success
}
SendClientMessage(playerid, COLOR_RED, "This skin is only for donors!"); //The failure message
return 1;
}