Please Help! How Can I Add One More Class? Please Help!
#5

Quote:
Originally Posted by Compton's Eazy E (Eazyrp.tk)
im not really understanding but, Is this what you mean?


since there is 3 Classes:

AddPlayerClass(122,-2168.0637,288.5149,35.3203,66.4466,31,500,27,500,0 ,0); // Terorist
AddPlayerClass(164,-2429.3110,323.7393,35.1719,296.9317,31,500,27,500, 0,0); // Bodyguard
AddPlayerClass(165,-2429.3110,323.7393,35.1719,296.9317,31,500,27,500, 0,0); // President

You Need to edit
Код:
if(classid == 0)
	{
		GameTextForPlayer(playerid, "~r~ Terrorist", 9000, 3);
		Team[playerid] = TEAM_1;
	}
	else if(classid == 1)
	{
		GameTextForPlayer(playerid, "~b~ Bodyguard", 9000, 3);
		Team[playerid] = TEAM_2;
	}
	else if(classid == 2)
	{

	  GameTextForPlayer(playerid, "~b~ President", 9000, 3);
	  Team{playerid} = TEAM_3;
	 }
So if you add another AddPlayerClass and if you want the person to be a BodyGuard replace

else if(classid == 1)

with

else if(classid == 1, 3)

Since there are 4 classes, Get it?
XD, Not Really, I Will Try It Anyway Since I Have Made A Backup File, Thanks For Your Help.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)