AddPlayerClass problem ..
#1

I've a big problem. The AddPlayerClass function is not working, on the game we see the CJ skin and we can't play ..

Help is needed !
Reply
#2

Quote:
Originally Posted by RaFsTar[PT
]
I've a big problem. The AddPlayerClass function is not working, on the game we see the CJ skin and we can't play ..

Help is needed !
show me your OnGameModeInit callback, the part with addplayerclass function

also show me your OnPlayerSpawn callback
Reply
#3

Quote:
Originally Posted by Toniu_
Quote:
Originally Posted by RaFsTar[PT
]
I've a big problem. The AddPlayerClass function is not working, on the game we see the CJ skin and we can't play ..

Help is needed !
show me your OnGameModeInit callback, the part with addplayerclass function

also show me your OnPlayerSpawn callback
I can say that my OnGameModeInit is not working fine now :S

Код:
	//Citizen
	AddPlayerClass(56,1448.4926,-2286.8882,13.5469,89.6042,0,0,0,0,0,0); //0
	AddPlayerClass(96,1448.4926,-2286.8882,13.5469,89.6042,0,0,0,0,0,0); //
	AddPlayerClass(98,1448.4926,-2286.8882,13.5469,89.6042,0,0,0,0,0,0); //
	AddPlayerClass(101,1448.4926,-2286.8882,13.5469,89.6042,0,0,0,0,0,0); //
	AddPlayerClass(102,1448.4926,-2286.8882,13.5469,89.6042,0,0,0,0,0,0); //4
	//Cop
	AddPlayerClass(281,1546.4264,-1675.4415,13.5623,89.1200,1,3,0,0,0,0); //5
	AddPlayerClass(280,1546.4264,-1675.4415,13.5623,89.1200,1,3,0,0,0,0); //

	//SWAT
	AddPlayerClass(285,1546.4264,-1675.4415,13.5623,89.1200,1,3,0,0,0,0); //7
	//Army
	AddPlayerClass(287,222.2600,1861.0750,13.1470,38.2402,0,0,0,0,0,0); //8
	//Mayor
	AddPlayerClass(120,1226.7073,-809.8508,1084.0078,256.0956,1,0,0,0,0,0);//9
	//Medic/Firefighter
	AddPlayerClass(277,1176.9753,-1323.8086,14.0478,269.4218,9,1,42,1000,0,0); //10
	//Taxi
	AddPlayerClass(255,1760.0844,-1894.4406,13.5607,257.9973,0,0,0,0,0,0); //11
	//Mechanic
	AddPlayerClass(50,2100.6377,-2011.4437,13.5544,102.8582,0,0,0,0,0,0); //12
	//Anarchist
	AddPlayerClass(114,2407.8386,-2476.8613,13.6314,314.4930,0,0,0,0,0,0); //13
	//Hitman
	AddPlayerClass(111,2323.9875,-1273.5819,22.5000,301.7027,0,0,0,0,0,0); //14
	//THIEF
	AddPlayerClass(115,870.1482,-25.0976,63.9824,155.3693,0,0,0,0,0,0); //15
	//Gay
	AddPlayerClass(291,2421.5833,-1220.4955,25.4806,178.5139,10,0,0,0,0,0); //16
	//Lgiver
	AddPlayerClass(71,734.085144,-1356.210205,23.167812,282.312103,3,0,0,0,0,0); //17
This is set OnPlayerRequestClass
Код:
SetPlayerTeamFromClass(playerid, classid)
{
	if (classid == 0)
	{
		gTeam[playerid] = CITIZEN;
	}
	else if(classid == 1)
	{
		gTeam[playerid] = CITIZEN;
	}
	else if(classid == 2)
	{
		gTeam[playerid] = CITIZEN;
	}
	else if(classid == 3)
	{
		gTeam[playerid] = CITIZEN;
	}
	else if(classid == 4)
	{
		gTeam[playerid] = CITIZEN;
	}
	else if(classid == 5)
	{
		gTeam[playerid] = COP;
	}
	else if(classid == 6)
	{
		gTeam[playerid] = COP;
	}
	else if(classid == 7)
	{
		gTeam[playerid] = SWAT;
	}
	else if(classid == 8)
	{
		gTeam[playerid] = MILITAR;
	}
	else if(classid == 9)
	{
		gTeam[playerid] = MAYOR;
	}
	else if(classid == 10)
	{
		gTeam[playerid] = MEDICF;
	}
	else if(classid == 11)
	{
		gTeam[playerid] = TAXI;
	}
	else if(classid == 12)
	{
		gTeam[playerid] = MECHANIC;
	}
	else if(classid == 13)
	{
		gTeam[playerid] = ANARCHIST;
	}
	else if(classid == 14)
	{
		gTeam[playerid] = HITMAN;
	}
	else if(classid == 15)
	{
		gTeam[playerid] = THIEF;
	}
	else if(classid == 16)
	{
		gTeam[playerid] = GAY;
	}

	else if(classid == 17)
	{
		gTeam[playerid] = LGIVER;
	}
Reply
#4

Nevermind it's fixed.

It was a human mistake XD
Reply
#5

Quote:
Originally Posted by RaFsTar[PT
]
Nevermind it's fixed.

It was a human mistake XD
rofl, check your problem twice before you post next time
cheers
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)