SA-MP Forums Archive
need help with a command - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: need help with a command (/showthread.php?tid=180949)



need help with a command - LegendNissanGTR - 03.10.2010

Hi guys today,
i wanted to make a command like when you press number 2 on your keyboard top left and it will arrest the player from inside the car or ticket the player and must about 10 inches to press the number anybody know how? because i simply dont know please help


Re: need help with a command - Nero_3D - 03.10.2010

So this should work (KEY_SUBMISSION only works in vehicles)

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SUBMISSION)
    {
        //Rest of code
    }
    return 1;
}



Re: need help with a command - LegendNissanGTR - 03.10.2010

Thats All? but i need It Like To Be 10inches To ticket the person in the car if the player is orange and his on foot then the police officer in the car press 2 he will be arrested


Re: need help with a command - Nero_3D - 03.10.2010

Thats not the script request topic

To do that, you need to add at "Rest of code"