SA-MP Forums Archive
[HELP] Class Selection Problem - 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: [HELP] Class Selection Problem (/showthread.php?tid=115390)



[HELP] Class Selection Problem - admantis - 23.12.2009

Hello. I have got a little problem with the class selection which really pisses me off.

Okay, well there is the problem. I add skins to be used and it's okay, but it shows CJ skin in class selection, I am like "wtf?". I go check the script and there is no script that addes CJ ANYWHERE. It just shows CJ in the class selection in first place.

I tried to change and delete every shit, CJ stills showing up in class selection. When I spawn with CJ class I appear in Blueberry farms.

if anyone can help me to fix this problem I'd be pleased.

Regards


Re: [HELP] Class Selection Problem - *ToM* - 23.12.2009

show me your OnPlayerSpawn callback and your ongamemodeinit callback


Re: [HELP] Class Selection Problem - admantis - 23.12.2009

Код:
public OnGameModeInit()
{
	SetGameModeText("dG-TDM");
	return 1;
}
Код:
public OnPlayerSpawn(playerid)
{
   	PlayerInfo[playerid][SpawnAngle] = 0.0;
  	PlayerInfo[playerid][SpawnDance] = true;
	KillTimer( PlayerInfo[playerid][SpawnTimer] );
	PlayerPlaySound(playerid, 1186, 0.0, 0.0, 0.0);
 	SetCameraBehindPlayer(playerid);
	return 1;
}
Shouldn't I show you OnPlayerRequestClass?


Re: [HELP] Class Selection Problem - *ToM* - 23.12.2009

You have no player class added under your OnGameModeInit...
You have to add this :

AddPlayerClass(classid, coords of spawn, list of guns);

Also this seems like copy/paste from another script