[AJUDA]Comando RC
#1

Eae pessoal estou com um bug no meu comando de dar /rc
й o seguinte eu dou /rc simplesmente nгo respawn o veнculos nem a mensagem que admin respawno nгo acontece
ja tentei varias coisa mais nem deu

code:
pawn Код:
CMD:rc(playerid, params[])
{
    if(PlayerInfo[playerid][Level] < 3)return SendClientMessage(playerid,fail,LEVELF);
    SetTimerEx("ResetCars",3000,false,"i",playerid);
    return 1;
}
forward ResetCars(playerid);
public ResetCars(playerid)
{
    for(new cars; cars < MAX_VEHICLES; ++cars)
    {
    if(!VeiculoPR(cars))
    {
    SetVehicleToRespawn(cars);
    }
    }
    new string[90];
    format(string,sizeof(string),"O(a) Administrador(a) %s respawnou todos veiculos desocupados!",PlayerInfo[playerid][Nick]);
    SendClientMessageToAll(amarelo,string);
    return 1;
}
stock VeiculoPR(carid)
{
    for(new p; p < GetMaxPlayers(); ++p)
    {
    if(IsPlayerInVehicle(p,carid))return true;
    if(PlayerInfo[p][Carro] == carid)return true;
    }
    return false;
}
Entгo nгo quer respawnar se alguem souber o que que й posta ae!
Reply


Messages In This Thread
[AJUDA]Comando RC - by ReDKiiL - 30.06.2012, 21:11
Re: [AJUDA]Comando RC - by ViniBorn - 30.06.2012, 21:14
Re: [AJUDA]Comando RC - by ReDKiiL - 30.06.2012, 21:18
Re: [AJUDA]Comando RC - by .FuneraL. - 30.06.2012, 21:22
Re: [AJUDA]Comando RC - by ReDKiiL - 30.06.2012, 21:26
Re: [AJUDA]Comando RC - by Abravanel - 30.06.2012, 21:28
Re: [AJUDA]Comando RC - by ReDKiiL - 30.06.2012, 21:36
Re: [AJUDA]Comando RC - by leonardo1434 - 30.06.2012, 21:42
Re: [AJUDA]Comando RC - by ReDKiiL - 30.06.2012, 22:05
Re: [AJUDA]Comando RC - by leonardo1434 - 30.06.2012, 22:08

Forum Jump:


Users browsing this thread: 1 Guest(s)