SA-MP Forums Archive
Help WIth Class Selection - 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 WIth Class Selection (/showthread.php?tid=113094)



Help WIth Class Selection - wilcock33 - 12.12.2009

hi there, im trying to set my class selection on top of the mansion on ls, the one near the airport, and ive got the co-ords, but it dont work! GRRR, here is my script

Код:
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, -2037.0645,78.7500,79.3391);
	SetPlayerCameraPos(playerid, 1097.4480,-2038.9014,82.0349);
	SetPlayerCameraLookAt(playerid, 1097.4480,-2038.9014,82.0349);
	return 1;
}
Also, i am using seif admin script with the login etc etc... and i want it so it

A: saves the skin with a /saveskin command and
B: if you already have a saved skin, it takes you to a place, that you cant exit, until you /login correctly


Re: Help WIth Class Selection - [03]Garsino - 12.12.2009

Well, you forgot to change where the camera would be, in your code its on the other side of the map..
"SetPlayerCameraLookAt" should be the same co-ordinates as "SetPlayerPos".

Hope you understand it and good luck!


Re: Help WIth Class Selection - wilcock33 - 12.12.2009

ok ill give it a try, and the other problems?

how would i script that?

your solution didnt work


Re: Help WIth Class Selection - [03]Garsino - 12.12.2009

Use this:

pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    SetPlayerPos(playerid, 1097.0000,-2038.0000,82.3286);
    SetPlayerFacingAngle(playerid, 263.6);
    SetPlayerCameraPos(playerid, 1102.0000,-2038.0000,82.4022);
    SetPlayerCameraLookAt(playerid, 1097.0000,-2038.0000,82.3286);
    return 1;
}



Re: Help WIth Class Selection - wilcock33 - 12.12.2009

thanks, how about the other problems......


Re: Help WIth Class Selection - [03]Garsino - 12.12.2009

Quote:
Originally Posted by TFZ
thanks, how about the other problems......
You might want to post that in the topic where you downloaded it from.


Re: Help WIth Class Selection - wilcock33 - 12.12.2009

they wouldnt help thats why i posted here.....


Re: Help WIth Class Selection - Doppeyy - 12.12.2009

Put making new posts for things that are already made is against the rules .
So i advise you the same and ask it in that topic.

/Artix


Re: Help WIth Class Selection - wilcock33 - 12.12.2009

well i posted there and they never replied for a week, so i started this, i only asked for help




Re: Help WIth Class Selection - Doppeyy - 12.12.2009

I am not saying you cant ask for help i ask you cant make new topics about stuff that is already made.
I dont want to make you feel bad or anything :P i am just trying to make you follow the rules.

/Artix