Truck Problem
#9

Try this
pawn Код:
if(strcmp(cmd, "/respawnallcars", true) == 0 || strcmp(cmd, "/rac", true) == 0) //
{
    if(PlayerInfo[playerid][pAdmin] < 1337)
        return SendClientMessage(playerid, COLOR_GRAD1, "   you are not authorized to use that command!");

    new bool:unwanted[MAX_VEHICLES];
    for(new player; player != MAX_PLAYERS; player++)
        if(IsPlayerInAnyVehicle(player) && !IsATLCar(GetPlayerVehicleID(player)))
            unwanted[GetPlayerVehicleID(player)] = true;

    for(new car = 1; car != MAX_VEHICLES; car++)
        if(!unwanted[car]) SetVehicleToRespawn(car);

    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), " Toate vehicule sau respawnat de %s.", sendername);
    BroadCast(COLOR_WHITE,string);
    return true;
}
Reply


Messages In This Thread
Truck Problem - by Akcent_Voltaj - 04.03.2013, 10:27
Re: Truck Problem - by Threshold - 04.03.2013, 10:38
Re: Truck Problem - by Doughty - 04.03.2013, 10:39
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 11:08
Re: Truck Problem - by Doughty - 04.03.2013, 11:46
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 16:24
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 17:33
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 17:55
Re: Truck Problem - by ViniBorn - 04.03.2013, 18:20
Re: Truck Problem - by Akcent_Voltaj - 04.03.2013, 19:47

Forum Jump:


Users browsing this thread: 1 Guest(s)