19.09.2010, 16:10
Hi all,someone have some FS that can tune any car with a command??
Thanks
Thanks
COMMAND:tune(playerid, params[]) { if(!IsPlayerInAnyVehicle(playerid)) { ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "You need vehicle, to use this command!", "Close", "Close"); return 1;} #pragma unused params if(Tuning[playerid] == 1){ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "You can use this command now!", "Close", "Close"); return 1;} Tuning[playerid] = 1; RepairVehicle(GetPlayerVehicleID(playerid)); AddVehicleComponent(GetPlayerVehicleID(playerid), 1087); AddVehicleComponent(GetPlayerVehicleID(playerid), 1010); AddVehicleComponent(GetPlayerVehicleID(playerid), 1080); SetTimerEx("Tune", 60000*5, false, "i", playerid); return 1; } |
forward Tune(playerid); new Tuning [ MAX_PLAYERS ]; |
public Tune(playerid) { Tuning[playerid] = 0; ShowPlayerDialog(playerid, 5, DIALOG_STYLE_MSGBOX,"GangWars", "You can use command /tune!", "Close", "Close"); return 1; } |