17.07.2012, 17:35
Well I have here a /lock script, But when I do use /lock. It locks everything passenger and back seats.
And i only want to lock the driver's seat. How?
And i only want to lock the driver's seat. How?
Код:
CMD:lock(playerid, params[]) { new Float:X, Float:Y, Float:Z; new vehicleid = GetPlayerVehicleID(playerid); GetVehiclePos(vehicleid, X, Y, Z); if (!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR: You must be in a vehicle to use this command!"); { for(new i = 0; i < MAX_PLAYERS; i++) { SetVehicleParamsForPlayer(vehicleid,i,0,1); GameTextForPlayer(playerid, "~y~Vehicle ~r~Locked", 2000, 3); } } return 1; }