Me ajudem por favor!
#1

Ola,desculpe se estou postando errado mas й meu primeiro post! queria saber se alguem poderia me ajudar em um comando.
tenho um comando que respawna os veiculos sem uso

PHP код:
if(!strcmp(cmd,"/rvs"true) && pAdmin[playerid] >= 3

new 
pname[MAX_PLAYER_NAME];
GetPlayerName(playeridpnameMAX_PLAYER_NAME);
format(stringsizeof(string),"[BPW-Admin] O Administrador %s(ID: %d) Respawnou os veiculos sem uso"pnameplayerid);
SendClientMessageToAll(AdminCorstring);
new 
carro 0;
for(
carro 0carro MAX_VEHICLEScarro++)
{
if(!
IsVehicleOccupied(carro)) SetVehicleToRespawn(carro);
}
return 
1;

quero que ele seja executado sozinho em 1 em 1 hora! como que faзo? desde ja agradeзo!
att Ocirne
obrigado.
Reply
#2

faz uma callback com o comando e um timer de 1 hora.
Reply
#3

pawn Код:
new bool: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;
            }
        }
        if(!inVeh) SetVehicleToRespawn(i);
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)