enter to places
#1

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

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

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)