Help About Npc
#10

Last try..

pawn Код:
new bool:notnpcvehicle[MAX_VEHICLES];
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerNPC(i) && IsPlayerInAnyVehicle(i)) { notnpcvehicle[GetPlayerVehicleID(i)]=true; }
    }
    for(new v = 0; v < MAX_VEHICLES; v++)
    {
        if(!notnpcvehicle[v])
        {
            SetVehicleToRespawn(v);
        }
    }
    GetPlayerName(playerid, name, sizeof(name));
    format(string, sizeof(string), "[News] %sRe Spawned All Cars.",name);
    SendClientMessageToAll(COLOR_PINK, string);
    return 1;
}
Reply


Messages In This Thread
Help About Npc - by alishvasis - 14.03.2014, 18:27
Re: Help About Npc - by Matess - 14.03.2014, 18:34
Re: Help About Npc - by alishvasis - 14.03.2014, 18:38
Re: Help About Npc - by alishvasis - 14.03.2014, 19:00
AW: Help About Npc - by Macronix - 14.03.2014, 19:11
Re: Help About Npc - by Matess - 14.03.2014, 19:16
Re: Help About Npc - by alishvasis - 14.03.2014, 19:21
AW: Help About Npc - by Macronix - 14.03.2014, 19:24
Re: AW: Help About Npc - by alishvasis - 14.03.2014, 19:31
AW: Help About Npc - by Macronix - 14.03.2014, 19:38

Forum Jump:


Users browsing this thread: 3 Guest(s)