09.07.2010, 20:19
Quote:
if(!strcmp(cmd, "/hotwire", true)) { if(engineOn[GetPlayerVehicleID(playerid)]) return SendClientMessage(playerid, COLOR_GRAD1, "* Your engine is already started!"); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_RED, ""); if(GetPlayerState(playerid) == PLAYER_STATE_PASSENGER) return SendClientMessage(playerid, COLOR_RED, "ERROR:!"); if(IsAtDealership(playerid)) return SendClientMessage(playerid, COLOR_RED, "ERROR:!"); if(pveh == 510) return SendClientMessage(playerid, COLOR_RED, "ERROR:!"); if(pveh == 462) return SendClientMessage(playerid, COLOR_RED, "ERROR:!"); if(idcar == 59 || idcar == 60) return SendClientMessage(playerid, COLOR_RED, "ERROR: Access denied!"); if(IsAtCarrental(playerid)) return SendClientMessage(playerid, COLOR_RED, "You can't hotwire this car!"); new playerveh = GetPlayerVehicleID(playerid); PutPlayerInVehicle(playerid, playerveh, 0); GetPlayerName(playerid, sendername, sizeof(sendername)); SetTimerEx("StartingTheVehicle",5000,0,"i",playeri d); format(string, sizeof(string), "* %s tries to hotwire the car ", sendername); ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPL E,COLOR_PURPLE); GameTextForPlayer(playerid, "~r~Hotwiring.",3500,3); gEngine[playerid] = 1; return 1; } |