donor skin
#5

Quote:
Originally Posted by 1fret
Посмотреть сообщение
Thanks for tje reply but I wasn't talking about an command. I ment onplayerrequestspawn
Pretty much exactly the same code..

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;
}
It should work although I haven't tested it..
Reply


Messages In This Thread
donor skin - by 1fret - 01.04.2014, 22:06
Re: donor skin - by MattTucker - 01.04.2014, 22:37
Re: donor skin - by 1fret - 02.04.2014, 00:19
Re: donor skin - by 1fret - 02.04.2014, 08:04
Re: donor skin - by Flake. - 02.04.2014, 08:15
Re: donor skin - by 1fret - 03.04.2014, 02:13
Re: donor skin - by 1fret - 05.04.2014, 20:06
Re: donor skin - by 1fret - 06.04.2014, 22:15

Forum Jump:


Users browsing this thread: 1 Guest(s)