need help with a command
#1

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
Reply
#2

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

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
Reply
#4

Thats not the script request topic

To do that, you need to add at "Rest of code"
  • If the player itself is a police officer
    • Than you need a loop through all players
      • Now we check if the player is next to yourself
      • If the player is on foot and
      • If the player is "orange"
        • And if he is qualified he gets arrested
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)