06.07.2013, 19:56
I have a porblem even make a script command like /destroyveh. So I can remove cars I spawned. As when I spawn them and make them explode, they will just respawn.
So I want a command as /destroyveh
A command like this:
But with the /Destroyveh command.
Please help me out!
So I want a command as /destroyveh
A command like this:
Код:
dcmd_carcolor(playerid,params[]) { if(IsPlayerCommandLevel(playerid,"carcolor")) { new tmp[256],tmp2[256],Index; tmp = strtok(params,Index), tmp2 = strtok(params,Index); if(!strlen(tmp)||!(strval(tmp) >= 0 && strval(tmp) <= 126)||!IsNumeric(tmp)||!IsNumeric(tmp2)) return SendClientMessage(playerid,red,"Syntax Error: \"/CARCOLOR <COLOR 1> (<COLOR 2>)\"."); if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,red,"ERROR: You must be in a vehicle."); SendCommandMessageToAdmins(playerid,"CARCOLOR"); if(!strlen(tmp2)) tmp2 = tmp; new string[256],name[24]; GetPlayerName(playerid,name,24); format(string,256,"You have set your color data to: [Color 1: %d || Color 2: %d]",strval(tmp),strval(tmp2)); return ChangeVehicleColor(GetPlayerVehicleID(playerid),strval(tmp),strval(tmp2)); } else return SendLevelErrorMessage(playerid,"carcolor"); }
Please help me out!