[HELP] Carspawn command
#3

pawn Код:
if(strcmp(cmdtext, "/RespawnVehicle", true) )
{
VehicleReset();
return 1;
}


forward VehicleReset();
public VehicleReset()
{
    new string[128];
    format(string, sizeof(string), "Os Veнculos forгo Respawnados Automaticamente");
    SendClientMessageToAll(Aviso, string);
    new inVeh;
    for( new i = 0; i < MAX_VEHICLES; i++ )
    {
        inVeh = false;
        for( new j = 0; j < MAX_PLAYERS; j++ )
        {
            if(IsPlayerInVehicle( j, i ))
            {
                inVeh = true;
                break;
            }
        }
        if(!inVeh)
        {
            SetVehicleToRespawn(i);
        }
    }
}
Reply


Messages In This Thread
[HELP] Carspawn command - by WThieves - 06.07.2010, 20:02
Re: [HELP] Carspawn command - by CAR - 06.07.2010, 20:45
Re: [HELP] Carspawn command - by TheGarfield - 06.07.2010, 20:46
Re: [HELP] Carspawn command - by WThieves - 06.07.2010, 21:56
Re: [HELP] Carspawn command - by CAR - 06.07.2010, 22:06
Re: [HELP] Carspawn command - by TheKingOfSamp - 06.07.2010, 22:57
Re: [HELP] Carspawn command - by WThieves - 07.07.2010, 11:43
Re: [HELP] Carspawn command - by CAR - 07.07.2010, 11:44
Re: [HELP] Carspawn command - by WThieves - 07.07.2010, 11:57
Re: [HELP] Carspawn command - by CAR - 07.07.2010, 12:07

Forum Jump:


Users browsing this thread: 1 Guest(s)