SA-MP Forums Archive
enter to places - 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)
+--- Thread: enter to places (/showthread.php?tid=491202)



enter to places - DestenyRay - 29.01.2014

how can i script if player want to enter the clothes shop he need to press enter key?


Re: enter to places - SilentSoul - 29.01.2014

https://sampwiki.blast.hk/wiki/Keys
Key found:
pawn Код:
KEY_SECONDARY_ATTACK    16  ~k~~VEHICLE_ENTER_EXIT~     ~k~~VEHICLE_ENTER_EXIT~     ENTER   ENTER
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Example :
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)//new or old it's really up to you
    {
        SendClientMessage(playerid,-1,"You pressed Eneter.");
    }
    return 1;
}



Re: enter to places - DestenyRay - 29.01.2014

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
https://sampwiki.blast.hk/wiki/Keys
Key found:
pawn Код:
KEY_SECONDARY_ATTACK    16  ~k~~VEHICLE_ENTER_EXIT~     ~k~~VEHICLE_ENTER_EXIT~     ENTER   ENTER
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange

Example :
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)//new or old it's really up to you
    {
        SendClientMessage(playerid,-1,"You pressed Eneter.");
    }
    return 1;
}
tanks you help me alot