[Ajuda] Respawn carros
#3

Quote:
Originally Posted by Ivison
Посмотреть сообщение
esse comando ai faz com que o pm level 4 possa resetar todos os carros da sua HQ minha duvida й a seguinte tem como duminuir a quantidade de linhas pra nгo ocupar muita linha do gm pq aida tem as outras orgs

pawn Код:
CMD:rtcpm(playerid, params[])
{
    new string[256];
    if(Player[playerid][pPM] >= 4)
    {
        SetVehicleToRespawn(PM[1]);
        SetVehicleToRespawn(PM[2]);
        SetVehicleToRespawn(PM[3]);
        SetVehicleToRespawn(PM[4]);
        SetVehicleToRespawn(PM[5]);
        SetVehicleToRespawn(PM[6]);
        SetVehicleToRespawn(PM[7]);
        SetVehicleToRespawn(PM[8]);
        SetVehicleToRespawn(PM[9]);
        SetVehicleToRespawn(PM[10]);
        SetVehicleToRespawn(PM[11]);
        SetVehicleToRespawn(PM[12]);
        SetVehicleToRespawn(PM[13]);
        SetVehicleToRespawn(PM[14]);
        format(string, sizeof(string), "{0000FF}O Polнcial {ffffff}%s{0000FF} respawnou todos os carros da PM.", getPName(playerid));
        SendMessageToPM(COR_BRANCO, string);
        else
        {
        SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem autorizaзгo para usar este comando.");
        return 1;
    }
    return 1;
}
pawn Код:
CMD:rtcpm(playerid, params[])
{
    new string[256];
    if(Player[playerid][pPM] >= 4)
    {
for(new i; i < NUMERO DE CARROS PM; i++)
{
        SetVehicleToRespawn(PM[i]);
       
        format(string, sizeof(string), "{0000FF}O Polнcial {ffffff}%s{0000FF} respawnou todos os carros da PM.", getPName(playerid));
        SendMessageToPM(COR_BRANCO, string);
}
        else
        {
        SendClientMessage(playerid, COR_ERRO, "Vocк nгo tem autorizaзгo para usar este comando.");
        return 1;
    }
    return 1;
}
Reply


Messages In This Thread
Respawn carros - by _Play_ - 10.10.2014, 19:37
Re: Respawn carros - by mau.tito - 10.10.2014, 19:40
Re: Respawn carros - by Saidmrn - 10.10.2014, 19:40
Re: Respawn carros - by ipsLuan - 10.10.2014, 19:42
Re: Respawn carros - by _Play_ - 10.10.2014, 19:49
Re: Respawn carros - by _Play_ - 10.10.2014, 20:27

Forum Jump:


Users browsing this thread: 1 Guest(s)