[AJUDA] /fumaca
#2

pawn Код:
//variaveis global
new smoke[MAX_VEHICLES];
new vehid = GetPlayerVehicleID(playerid);
new carid = GetVehicleModel(vehid);
new Fumaceado[MAX_VEHICLES];

if (strcmp(cmdtext, "/fumaca", true) == 0)
{
    if(carid == 511 || carid == 512 || carid == 593 || carid == 520 || carid == 553 || carid == 476 || carid == 519 || carid == 460) {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) {
            if(Fumaceado[vehid] == 0) {
                smoke[vehid] = CreateObject(2780,0,0,0,0,0,50000);
                AttachObjectToVehicle(smoke[vehid], vehid, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0);
                SendClientMessage(playerid, COR_AZUL, "Fumaca ligada.");
                Fumaceado[vehid] = 1;
            }
        }
    }
    return 1;
}


if (strcmp(cmdtext, "/fumacadesligar", true) == 0)
{
    DestroyObject(smoke[vehid]);
    SendClientMessage(playerid, COR_AZUL, "Fumaca desligada.");
    Fumaceado[vehid] = 0;
    return 1;
}
Reply


Messages In This Thread
[AJUDA] /fumaca - by Mattos - 25.11.2011, 16:44
Re: [AJUDA] /fumaca - by |_MeGaTroN_| - 25.11.2011, 16:54
Re: [AJUDA] /fumaca - by Pharrel - 25.11.2011, 16:56
Re: [AJUDA] /fumaca - by Mattos - 25.11.2011, 17:03
Re: [AJUDA] /fumaca - by |_MeGaTroN_| - 25.11.2011, 17:22
Re: [AJUDA] /fumaca - by Pharrel - 25.11.2011, 17:29
Re: [AJUDA] /fumaca - by Mattos - 25.11.2011, 17:38
Re: [AJUDA] /fumaca - by Pharrel - 25.11.2011, 17:41
Re: [AJUDA] /fumaca - by Mattos - 25.11.2011, 18:06
Re: [AJUDA] /fumaca - by |_MeGaTroN_| - 25.11.2011, 18:43

Forum Jump:


Users browsing this thread: 2 Guest(s)