left alt for robbery
#1

i want when player stands in a checkpoint and presses left alt he can rob the store normally instead of typing for example /rob or /robshop or /robstore
Reply
#2

You can use this
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(IsPlayerInRangeOfPoint(playerid,4.0,0,0,0))// Add here the checkpoint x,y,z cords
    {
        if(newkeys == KEY_WALK)//Thats for the left alt
        {
            //add Rob code here
        }
    }
    return 1;
}
Reply
#3

ok anyways i already made that but i thought there are other ideas
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)