donor skin
#1

I need to make a skin thats for donors only so if im not a donor i cant spawn with that skin and it would send a message saying you need to be a donor to use this skin can someone help me or send me a link to an tutorial please
Reply
#2

pawn Код:
new donor[MAX_PLAYERS];

CMD:skin(playerid, params[])
{
    if(donor[playerid]==1)
    {
         SetPlayerSkin(playerid, /*type in the skin id you want*/);
    }
    else return SendClientMessage(playerid, -1, "You are not a donor.");
    return 1;
}
Reply
#3

Thanks for tje reply but I wasn't talking about an command. I ment onplayerrequestspawn
Reply
#4

Bump
Reply
#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
#6

Thanks man
Reply
#7

doesnt work
Reply
#8

Bump
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)