Disable Keyboard Button - 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 Keyboard Button (
/showthread.php?tid=63473)
Disable Keyboard Button -
Gupike - 29.01.2009
hey budies...i wish to do something but dont know how...
I've saw in a gamemode (but not source) when u just get the class selection screen...if you try to press shift key to select...a message apear : "we disable shift on selection class, you have to register/login"...
How they do it...
How i can disable on keyboard function and lock class selection by screen?
Re: Disable Keyboard Button -
Mikep - 29.01.2009
OnPlayerRequest spawn, if they arent registered, retrun 0;.
Re: Disable Keyboard Button -
Gupike - 29.01.2009
Thx a Lot Mate!
Re: Disable Keyboard Button -
Mikep - 29.01.2009
yw
Re: Disable Keyboard Button -
Owenlishious - 29.04.2010
i dont get it....
help?
Re: Disable Keyboard Button -
Babul - 29.04.2010
its like a trap. the "OnPlayerRequestClass" gets called when you press the shift key.
the magic is: let a
Код:
GameTextForPlayer(playerid,"~r~~h~you need to register first",4000,4);
show up for the playerid who pressed the key, then:
disturb the execution of the spawn process by a
in stead of the (regular)
at the end of that callback.
Re: Disable Keyboard Button -
Owenlishious - 29.04.2010
thx man!
Re: Disable Keyboard Button -
Babul - 29.04.2010
oops, not at the end of the callback, but at the end inside your trap of coz, as mentioned before ^^
yw hehe
Re: Disable Keyboard Button -
Miguel - 29.04.2010
pawn Код:
public OnPlayerRequestSpawn(playerid)
{
if(var == value)
{
// do stuff
return 0;
}
return 1;
}