Autorespawn vehicles and respawn at a command - question
#5

Works good, but is one problem. Now command looks that:

pawn Код:
CMD:respawn(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return 0; // returns 0 - command not work

    else SendClientMessage(playerid, Kolor_Administratora, "All cars spawned by /v are removed.");
    for(new i = 1; i < MAX_VEHICLES + 1; i++)
        {
            if(Commanded[i])
            {
            DestroyVehicle(i);
            Commanded[i] = false;
            continue;
        }
        }
        return true;
}
When I'm not logged in on RCON - works good - show in chat info about this command not work, but when I'm logged in, this destroy all cars properly, but hm... still show in chat info about not working command and under this information show "All cars spawned by /v are removed"... What I doing bad?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)