SA-MP Forums Archive
Cj keeps bumpin in !? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Cj keeps bumpin in !? (/showthread.php?tid=67016)



Cj keeps bumpin in !? - the_driver - 26.02.2009

Hey all, i am busy with a class script but i am noob so i often need your help..
Nou everything supposed to work fine.. but now CJ keeps showing up as class 21 and 26 ?!
Here is the code of the classes:
Код:
	AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police Chef
	AddPlayerClass(286, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agents Leader
	AddPlayerClass(113, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra Leader
	AddPlayerClass(294, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman Leader
	AddPlayerClass(123, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys Leader
	AddPlayerClass(227, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Mayor

	// Faction Classes

	// Police

	AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 2
	AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 3
	AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 4
	AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police 5

	// Federal Agents

	AddPlayerClass(163, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 1
	AddPlayerClass(164, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 2
	AddPlayerClass(165, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 3
	AddPlayerClass(166, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Federal Agent 4

	// La Costra Nostra

	AddPlayerClass(111, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 1
	AddPlayerClass(124, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 2
	AddPlayerClass(125, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 3
	AddPlayerClass(126, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // La Costra Nostra 4

	// Hitman

	AddPlayerClass(117, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 1
	AddPlayerClass(118, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 2
	AddPlayerClass(119, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 3
	AddPlayerClass(98, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Hitman 4

	// Da Nang Boys

	AddPlayerClass(120, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys 1
	AddPlayerClass(121, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys 2
	AddPlayerClass(122, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Da Nang Boys 2
Now i think that i didn't put CJ somewhere !?
Ohyeah here is the code gametextforplayer stuff :P because of that cj keeps jumpin in this aint right anymore either.. ( i dont know if it has to do with it.. )
Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerInterior(playerid,14);
	SetPlayerPos(playerid,258.4893,-41.4008,1002.0234);
	SetPlayerFacingAngle(playerid, 270.0);
	SetPlayerCameraPos(playerid,256.0815,-43.0475,1004.0234);
	SetPlayerCameraLookAt(playerid,258.4893,-41.4008,1002.0234);
	switch(classid)
	{

	// Leaders

	case 0:		GameTextForPlayer(playerid, "Police Chef", 1000, 6);
	case 1:		GameTextForPlayer(playerid, "Federal Agents - Leader", 1000, 6);
	case 2:		GameTextForPlayer(playerid, "La Costra Nostra - Leader", 1000, 6);
	case 3:		GameTextForPlayer(playerid, "Hitman - Leader", 1000, 6);
	case 4:		GameTextForPlayer(playerid, "Da Nang Boys - Leader", 1000, 6);
	case 5:   GameTextForPlayer(playerid, "Mayor", 1000, 6);
	
	// Police
	case 6..9:		GameTextForPlayer(playerid, "Police", 1000, 4);
	// Federal agents
	case 10..13:		GameTextForPlayer(playerid, "Federal Agents", 1000, 4);
	// La Costra Nostra
	case 14..17:	GameTextForPlayer(playerid, "La Costra Nostra Family", 1000, 4);
	// Hitman
	case 18..21:	GameTextForPlayer(playerid, "Hitman", 1000, 4);
	// Da Nang Boys
	case 22..24:	GameTextForPlayer(playerid, "Da Nang Boys", 1000, 4);
	// Civilians
	default:		GameTextForPlayer(playerid, "Civilian", 1000, 4);
	}
	return 1;



Re: Cj keeps bumpin in !? - FUNExtreme - 26.02.2009

Anyway this issent the problem but your Da nang boy skins aren't correct.
It is 121, 122, 123 not 120,121,122

Skins da nang boys (WIKI)

EDIT: skinid 119 cant be used. Delete it and it should work. [url=https://sampwiki.blast.hk/wiki/Skins:All]Check the bad skins array it contains 119[url]


Re: Cj keeps bumpin in !? - the_driver - 26.02.2009

Yeh i know that :P i got all the skins from that page


Re: Cj keeps bumpin in !? - FUNExtreme - 26.02.2009

Quote:
Originally Posted by the_driver
Yeh i know that :P i got all the skins from that page
If you know that why do you put wrong skins then

Btw Skinid 119 is a skin that causes problems DELETE it and try again.
Source


Re: Cj keeps bumpin in !? - the_driver - 26.02.2009

cause i took 123 as the leader and to have 2 member skins is a bit lame x]

- Thanks man it works now.. i should never found that myself..