05.01.2010, 06:24
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 |

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);
}
}