Class System
#1

Hey i need a class system for zombie server .. i need help how can i make it on the basis of XP


PLZ PLZ PLZ
Reply
#2

try counting the kills?
Reply
#3

Simple make a variable or a Enum and save it then do this

if playerinfo[PlayerInfo][pXP] >= 9
{
class
return 1;
}
then again
Reply
#4

Код:
	CMD:selectclass(playerid,params[])
	{
	    ShowPlayerDialog(playerid,699,DIALOG_STYLE_LIST,"Choose Class","Sniper Class\nAssualt Class\nRocket Class \nPilot Class \nMedic Class \n","Accept", "Exit");
		return 1;
	}
Then Under OnDialogResponse

Код:
    if(dialogid == 699)
	{
		if(response)
		{
			if(listitem == 0)
			{
			    IsSniper[playerid]=1;
				GivePlayerWeapon(playerid,34,200);
				GivePlayerWeapon(playerid,25,200);
				GivePlayerWeapon(playerid,23,200);
				GameTextForPlayer(playerid, "Sniper Class!", 2000, 6);
 			}
 			if(listitem == 1)
			{
				IsAssault[playerid]=1;
				GivePlayerWeapon(playerid,31,500);
				GivePlayerWeapon(playerid,27,200);
				GivePlayerWeapon(playerid,29,400);
				GameTextForPlayer(playerid, "Assualt Class", 2000, 6);
			}
			if(listitem == 2)
			{
			    IsRocket[playerid]=1;
				GivePlayerWeapon(playerid,36,100);
				GivePlayerWeapon(playerid,39,5);
				GivePlayerWeapon(playerid,40,1);
				GivePlayerWeapon(playerid,35,10);
				GivePlayerWeapon(playerid,29,400);
				GameTextForPlayer(playerid, "RocketClass", 2000, 6);
			}
			if(listitem == 3)
			{
			    IsPilot[playerid]=1;
				GivePlayerWeapon(playerid,22,200);
				GivePlayerWeapon(playerid,33,200);
				GivePlayerWeapon(playerid,29,400);
				GivePlayerWeapon(playerid,42,50);
				GameTextForPlayer(playerid, "Pilot Class", 2000, 6);
			}
			if(listitem == 4)
			{
			    IsMedic[playerid]=1;
				GivePlayerWeapon(playerid,23,200);
				GivePlayerWeapon(playerid,33,200);
				GivePlayerWeapon(playerid,4,1);
				GameTextForPlayer(playerid, "Medic Class", 2000, 6);
				}
            }
        }
THen you just gotta make the XP system, i prefer using ranks

Make this fit for your server
Reply
#5

As Shockey HD say make it with with dialogs where it checks how much Exp do you have. And OnPlayerDeath to give to player EXP
Reply
#6

Why you guys bumping 1 years old thread lol.
Reply
#7

I didn't see it's 1 year old
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)