10.03.2014, 13:28
Hello, How to do jobs select on OnPlayerRequestClass (I need a code)?
//Above main():
#define JOB_GANGSTER 1
#define JOB_FARMER 2
//...
new PlayerJob[MAX_PLAYERS]; //Player team variable
//In RequestClass:
switch(classid)
{
case 0:
{
GameTextForPlayer(playerid, "Gangmember (Job: Gangster)", 2000, 4);
PlayerJob[playerid] = JOB_GANGSTER;
}
case 1:
{
GameTextForPlayer(playerid, "Farmer (Job: Farmer)", 2000, 4);
PlayerJob[playerid] = JOB_FARMER;
}
}
//skin, Float:x, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo AddPlayerClass(0, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0); AddPlayerClass(1, 1958.33, 1343.12, 15.36, 269.15, 26, 36, 28, 150, 0, 0);
+REP