02.03.2013, 00:58
I'm looking for a /unlock (to unlock the car)
If a player get out of the car it auto un lock it Can someone fix dis one?:
If a player get out of the car it auto un lock it Can someone fix dis one?:
Code:
CMD:lock(playerid, params[]) { #pragma unused params { if(IsPlayerInAnyVehicle(playerid)) { for(new i = 0; i < MAX_PLAYERS; i++) SetCarLockedState(GetPlayerVehicleID(playerid),i,false,true); SendClientMessage(playerid,SUCCESS,"Your car has been locked!"); return 1; } else return SendClientMessage(playerid,COLOR_ERROR,"ERROR: You need to be in a vehicle"); } }