[Ajuda] DestroyVehicle e DestroyObject
#7

Comandos:
/criarveiculo - Cria os veiculos caso o jogador seja admin
/destruirveiculos - Destroi os carros caso o jogador seja admin

Код:
new carroevento[MAX_PLAYERS];

if(strcmp(cmdtext, "/criarveiculo", true) == 0)
{
    if(pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
    {
        carroevento[playerid] = CreateVehicle(520, 2128.6304,2208.4390,11.3929,179.0875, -1, -1, 120);
        carroevento[playerid] = CreateVehicle(529, 2131.3030,2190.2974,10.3516,180.3402, -1, -1, 120);
        carroevento[playerid] = CreateVehicle(541, 2126.0151,2190.4451,10.2968,179.4966, -1, -1, 120);
    }
    return 1;
}

if(strcmp(cmdtext, "/destruirveiculos", true) == 0)
{
    if(pAdmin[playerid] == 2 || pAdmin[playerid] == 3 || pAdmin[playerid] == 4 || pAdmin[playerid] == 5)
    {
        DestroyVehicle(carroevento[playerid]);
    }
    return 1;
}
Reply


Messages In This Thread
DestroyVehicle e DestroyObject - by MoonRey - 24.08.2013, 21:54
Re: DestroyVehicle e DestroyObject - by Coe1 - 24.08.2013, 22:05
Re: DestroyVehicle e DestroyObject - by [THs]ShadoW - 24.08.2013, 22:08
Respuesta: DestroyVehicle e DestroyObject - by MoonRey - 24.08.2013, 22:08
Re: DestroyVehicle e DestroyObject - by Coe1 - 24.08.2013, 22:11
Respuesta: DestroyVehicle e DestroyObject - by MoonRey - 24.08.2013, 22:15
Re: DestroyVehicle e DestroyObject - by SmOkEwOw - 24.08.2013, 22:15
Re: DestroyVehicle e DestroyObject - by Coe1 - 24.08.2013, 22:19
Respuesta: DestroyVehicle e DestroyObject - by MoonRey - 24.08.2013, 22:23
Respuesta: DestroyVehicle e DestroyObject - by MoonRey - 24.08.2013, 22:57

Forum Jump:


Users browsing this thread: 3 Guest(s)