Locking to class - 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: Locking to class (
/showthread.php?tid=74175)
Locking to class -
Robbin237 - 20.04.2009
How to lock to a class once in the selection screen? Like if you press left or right, it will stay at that class. But once you typed /start then you will be able to browse the rest of it.
Thnx!
Re: Locking to class -
Robbin237 - 20.04.2009
Bump
Re: Locking to class -
Robbin237 - 21.04.2009
Bump
Re: Locking to class -
Rks25 - 21.04.2009
if at class selection, make variable is 1.
and when someone presses right or left, return 0;? I am not sure about this.
Re: Locking to class -
Robbin237 - 21.04.2009
Just for testing i've made this that if the classid is above 1 you wont be able to browse through the rest, i had it working for a second but dont know what i did wrong now..
Somebody help me
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1477.1437,-2410.3237,52.6302);
SetPlayerFacingAngle(playerid, 309.0874);
SetPlayerCameraPos(playerid, 1479.2456,-2408.4324,53.8625);
SetPlayerCameraLookAt(playerid, 1477.1437,-2410.3237,52.5302);
if(classid > 1)
{
return 0;
}
return 0;
}
Re: Locking to class -
miokie - 21.04.2009
Theres a tutorial on the wiki I think...
www.wiki.sa-mp.com