Key Horn - 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: Key Horn (
/showthread.php?tid=247488)
Key Horn -
nuriel8833 - 09.04.2011
Hello.
I remember that I saw in many mods a usage in Key Horn,but I can not see it in the hot keys list:
https://sampwiki.blast.hk/wiki/GetPlayerKeys
Could someone tell me how to use it?
Thanks
Re: Key Horn -
cruising - 09.04.2011
Quote:
Originally Posted by Montserrat
|
Re: Key Horn -
nuriel8833 - 09.04.2011
Quote:
Originally Posted by cruising
|
And are you sure this is working?
Cause it seems weird that it wasn't written on wiki samp
Re: Key Horn -
Shelby - 09.04.2011

Define______Value________Gametext-Key on Foot_______Gametext-Key in Vehicle
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
{
//Something here
}
return 1;
}
Re: Key Horn -
cruising - 09.04.2011
Quote:
Originally Posted by Montserrat
And are you sure this is working?
Cause it seems weird that it wasn't written on wiki samp
|
yes, but you need a code for it what should happen when a player press the horn key
Re: Key Horn -
nuriel8833 - 09.04.2011
Quote:
Originally Posted by Larceny

Define______Value________Gametext-Key on Foot_______Gametext-Key in Vehicle
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys) { if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid))) { //Something here } return 1; }
|
Quote:
Originally Posted by cruising
yes, but you need a code for it what should happen when a player press the horn key
|
Okay thanks guys