SA-MP Forums Archive
adding class list - 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: adding class list (/showthread.php?tid=180823)



adding class list - Face9000 - 03.10.2010

Hi all,i need to add a name list of all classes in the class selection.

example:

class 1 - class 2 - class 3

Etc..

This when i request the class.

Thanks


Re: adding class list - Face9000 - 03.10.2010

bumppppp


Re: adding class list - Ash. - 03.10.2010

I take it you have AddPlayerClass or AddPlayerClassEx already setup?


Re: adding class list - Georgelopez1 - 03.10.2010

All you need is the co-ordinates, which you get from typing /save ingame.
Heres what I have:

Код:
public OnGameModeInit()
{
	// Don't use these lines if it's a filterscript
	SetGameModeText("blank");
	AddPlayerClass(202,-2670.7700,2481.4480,37.3377,349.2175,0,0,0,0,0,0); //
}
then you need the cam view, from which you would view your class/skin

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, -2187.8889,-209.3007,36.5156);
	SetPlayerCameraPos(playerid, -2183.1418,-209.9554,36.5156);
	SetPlayerCameraLookAt(playerid, -2187.8889,-209.3007,36.5156);
	return 1;
}



Re: adding class list - Face9000 - 03.10.2010

Quote:
Originally Posted by funky1234
Посмотреть сообщение
I take it you have AddPlayerClass or AddPlayerClassEx already setup?
Yes i've already AddPlayerClass.

Georgelopez1: I dont need a cam view,i need to show the names of the classes as a list.

Class 1 - class 2 - class 3 ecc..


Re: adding class list - Face9000 - 03.10.2010

No one...?