29.01.2014, 18:38
how can i script if player want to enter the clothes shop he need to press enter key?
KEY_SECONDARY_ATTACK 16 ~k~~VEHICLE_ENTER_EXIT~ ~k~~VEHICLE_ENTER_EXIT~ ENTER ENTER
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;
}
https://sampwiki.blast.hk/wiki/Keys
Key found: pawn Код:
Example : pawn Код:
|