Customizing command
#1

Hello, I have this command:
Код:
dcmd_respawnallcars(playerid,params[])
	{
	#pragma unused params
	if(pInfo[playerid][Adminlevel] >= 3) {
	new bool:vehicleused[MAX_VEHICLES];
            for(new i=0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
                {
                    vehicleused[GetPlayerVehicleID(i)] = true;
                }
            }
            for(new i=1; i < MAX_VEHICLES; i++)
            {
                if(!vehicleused[i])
                {
                    SetVehicleToRespawn(i);
                }
            }
            SendClientMessage(playerid, 0x32CD32, "You respawned all cars!");
            SendClientMessageToAll(0x32CD32, "All cars were respawned!");
	}
	return 1;
	}
I want to customize the command, example:
Код:
dcmd_respawnallcars(playerid,params[])
	{
	#pragma unused params
	if(pInfo[playerid][Adminlevel] >= 3) {
	new bool:vehicleused[MAX_VEHICLES];
            for(new i=0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i) && IsPlayerInAnyVehicle(i))
                {
                    vehicleused[GetPlayerVehicleID(i)] = true;
                }
            }
            for(new i=1; i < MAX_VEHICLES; i++)
            {
                if(!vehicleused[i])
                {
                    SetVehicleToRespawn(i);
                }
            }
            SendClientMessage(playerid, 0x32CD32, "You respawned all cars!");
            SendClientMessageToAll(0x32CD32, "All cars were respawned by administrator: THE NICK OF THE ADMIN WHO USE THE COMMAND!");
	}
	return 1;
	}
Any ideas?
Reply


Messages In This Thread
Customizing command - by bobsona - 14.09.2014, 14:44
Re: Customizing command - by IceBilizard - 14.09.2014, 14:46
Re : Customizing command - by streetpeace - 14.09.2014, 14:48
Re : Customizing command - by Chipardeur - 14.09.2014, 14:48
Re: Customizing command - by Affan - 14.09.2014, 14:48
Re: Customizing command - by bobsona - 14.09.2014, 14:56
Re: Customizing command - by Affan - 14.09.2014, 15:01
Re: Customizing command - by bobsona - 14.09.2014, 15:08

Forum Jump:


Users browsing this thread: 1 Guest(s)