08.06.2015, 00:26
I want to save class system, like , 1. Civilian 2. Robber 3. Hitman. Share me some tut i can't find it on search box. Or write some codes here for me. I would be your thankful. =)
///Player Classes
forward SetPlayerTeamFromClass(playerid, classid);
public SetPlayerTeamFromClass(playerid, classid)
{
SetupPlayerForClassSelection(playerid,classid);
gPlayerClass[playerid] = classid;
{
if (classid == 0 || classid == 1 || classid == 2 || classid == 3 || classid == 4 || classid == 5 || classid == 6)
{
gTeam[playerid] = COPS;
GameTextForPlayer(playerid, "~b~POLICE OFFICER", 600, 5);
return 1;
}
else if (classid == 7 )
{
gTeam[playerid] = ARMY;
GameTextForPlayer(playerid, "~b~~h~ARMY", 500, 5);
return 1;
}
else if (classid == 8)
{
gTeam[playerid] = FBI;
GameTextForPlayer(playerid, "~b~FBI", 500, 5);
return 1;
}
else if (classid == 9 || classid == 10)
{
gTeam[playerid] = CIA;
GameTextForPlayer(playerid, "~w~CIA", 500, 5);
return 1;
}
else if (classid == 11 || classid == 12 || classid == 13)
{
gTeam[playerid] = MEDICS;
GameTextForPlayer(playerid, "~p~~h~MEDIC", 500, 5);
return 1;
}
else if (classid >= 14)
{
gTeam[playerid] = CIVILIANS;
GameTextForPlayer(playerid, "~w~CIVILIAN", 500, 5);
return 1;
}
return 1;
}
}