[HELP]Player Colour and Pickup
#5

Quote:
Originally Posted by Seif_
You should ask here so they can understand you better:
http://forum.sa-mp.com/index.php?board=78.0
We told him to go to Scripting Discussion with this quostion cause nobody helps in Lithuanian forums..

What he means is when he dies he wants to have weapons and money dropped as pickups..

And the answer to "And that when they choose the skin would be the color of the skin" is:
pawn Код:
#define YOURCOLOR FFFFFFAA
#define YOURCOLOR2 F6F6FFAA

new pClass[MAX_PLAYERS];
public OnGameModeInit()
{
    //For example you have these on OnGameModeInit()
    AddPlayerClass(3, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); //class 0
    AddPlayerClass(18, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); // class1

}

// So here's what you need:
public OnPlayerRequestClass(playerid, classid)
{
  pClass[playerid] = classid;
}

public OnPlayerRequestSpawn(playerid)
{
    if(pClass[playerid] == 0)
    {
        SetPlayerColor(playerid,YOURCOLOR);
    }
    if(pClass[playerid] == 1)
    {
        SetPlayerColor(playerid,YOURCOLOR2);
    }
}
That's it I think.. :P
Reply


Messages In This Thread
[HELP]Player Colour and Pickup - by JetfighterV - 04.01.2010, 14:29
Re: [HELP]Player Colour and Pickup - by Correlli - 04.01.2010, 14:37
Re: [HELP]Player Colour and Pickup - by Andy_McKinley - 04.01.2010, 14:37
Re: [HELP]Player Colour and Pickup - by JetfighterV - 04.01.2010, 14:45
Re: [HELP]Player Colour and Pickup - by SiJ - 05.01.2010, 06:24
Re: [HELP]Player Colour and Pickup - by JetfighterV - 05.01.2010, 11:20
Re: [HELP]Player Colour and Pickup - by Blantas - 05.01.2010, 11:25
Re: [HELP]Player Colour and Pickup - by Blantas - 05.01.2010, 11:30
Re: [HELP]Player Colour and Pickup - by SiJ - 05.01.2010, 12:04
Re: [HELP]Player Colour and Pickup - by JetfighterV - 05.01.2010, 12:36

Forum Jump:


Users browsing this thread: 1 Guest(s)