SA-MP Forums Archive
Disable class select arrows - 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: Disable class select arrows (/showthread.php?tid=98159)



Disable class select arrows - kLx - 19.09.2009

Hi people, is this possible, tu disable the GUI-STYLE arrows, when selecting class?
I don't even give people select class, but they're still apear.

Thanks, Simas.


Re: Disable class select arrows - Sergei - 19.09.2009

Put player in specate mode at that time and that selection box won't show.


Re: Disable class select arrows - Daem - 19.09.2009

it's client-sided. so you can't
Quote:
Originally Posted by $ЂЯĢ
Put player in specate mode at that time and that selection box won't show.



Re: Disable class select arrows - Sergei - 19.09.2009

Quote:
Originally Posted by Daem
it's client-sided. so you can't
Quote:
Originally Posted by $ЂЯĢ
Put player in specate mode at that time and that selection box won't show.
If you don't need default class selection then do this:
pawn Код:
public OnPlayerRequestClass(playerid, classid)
{
    if(GetPlayerState(playerid) != PLAYER_STATE_SPECTATING)
    {
        TogglePlayerSpectating(playerid,1);
    }
    return 0;
}