SCM after respawn cars
#4

Quote:
Originally Posted by Kindred
Посмотреть сообщение
Did you try and think that the reason was because it was in a loop?

pawn Код:
command(rac, playerid, params[])
{
    new string[128];
    if(Player[playerid][AdminLevel] >= 1 || Player[playerid][Moderator] >= 1)
    for(new car = 1; car <= 268; car++)
    {
        if(IsVehicleEmpty(car)) SetVehicleToRespawn(car);
        format(string, sizeof(string), "SERVER ACTION: All unused cars respawned by %s", GetName(playerid));
        SendClientMessageToAll(RED, string);
    }
    return 1;
}
change to:

pawn Код:
command(rac, playerid, params[])
{
    new string[128];
    if(Player[playerid][AdminLevel] >= 1 || Player[playerid][Moderator] >= 1)
    for(new car = 1; car <= 268; car++)
    {
        if(IsVehicleEmpty(car)) SetVehicleToRespawn(car);
    }
    format(string, sizeof(string), "SERVER ACTION: All unused cars respawned by %s", GetName(playerid));
    SendClientMessageToAll(RED, string);
    return 1;
}
Try now.
Now it works but, even normal players can /rac but then the cars not respawn but it sends the "SERVER ACTION ......"
Reply


Messages In This Thread
SCM after respawn cars - by Stefand - 17.06.2012, 18:36
Re: SCM after respawn cars - by Kindred - 17.06.2012, 18:37
Re: SCM after respawn cars - by leonardo1434 - 17.06.2012, 18:44
Re: SCM after respawn cars - by Stefand - 17.06.2012, 19:18
Re: SCM after respawn cars - by MarinacMrcina - 17.06.2012, 19:22
Re: SCM after respawn cars - by ViniBorn - 17.06.2012, 19:25
Re: SCM after respawn cars - by Stefand - 17.06.2012, 19:27

Forum Jump:


Users browsing this thread: 1 Guest(s)