30.10.2011, 10:38
Heey all,
I want to make if a player press 2 in car they can arrest players and it work if a player dont drive,so they dont give gas and then they can arrest a player.
But how can i make if a player drive he can arrest a player?
Code:
Thanks admigo
I want to make if a player press 2 in car they can arrest players and it work if a player dont drive,so they dont give gas and then they can arrest a player.
But how can i make if a player drive he can arrest a player?
Code:
Code:
if (newkeys == KEY_SUBMISSION && GetPlayerState(playerid)==PLAYER_STATE_DRIVER && IsPlayerInAnyVehicle(playerid)) { new ID = GetClosestPlayerToPlayer(playerid); dcmd_arrestkey(playerid, IntToStr(GetClosestPlayerToPlayer(playerid))); dcmd_ticketkey(playerid, IntToStr(GetClosestPlayerToPlayer(playerid))); if(GetPlayerWantedLevel(ID)==0 && GetDistanceBetweenPlayers(playerid,ID) > 4) { SendClientMessage(playerid,COLOR_RED,"No Suspect In Range!"); } return 1; }