Key Horn
#1

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
Reply
#2

Quote:
Originally Posted by Montserrat
Посмотреть сообщение
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
pawn Код:
if(newkeys & KEY_HORN)
Reply
#3

Quote:
Originally Posted by cruising
Посмотреть сообщение
pawn Код:
if(newkeys & KEY_HORN)
And are you sure this is working?
Cause it seems weird that it wasn't written on wiki samp
Reply
#4


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;
}
Reply
#5

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
Reply
#6

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)