/destroyveh admin
#1

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:
Код:
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");
}
But with the /Destroyveh command.

Please help me out!
Reply


Messages In This Thread
/destroyveh admin - by Pilip93 - 06.07.2013, 19:56
Re: /destroyveh admin - by FGHosting - 06.07.2013, 20:03
Re: /destroyveh admin - by Pilip93 - 06.07.2013, 20:10
AW: /destroyveh admin - by Blackazur - 06.07.2013, 22:57
Re: /destroyveh admin - by CAR - 06.07.2013, 23:10
Re: /destroyveh admin - by Pilip93 - 06.07.2013, 23:22
Re: /destroyveh admin - by CAR - 06.07.2013, 23:28
Re: /destroyveh admin - by Pilip93 - 07.07.2013, 00:21
Re: /destroyveh admin - by CAR - 07.07.2013, 00:30
Re: /destroyveh admin - by Pilip93 - 07.07.2013, 00:44

Forum Jump:


Users browsing this thread: 1 Guest(s)