[Ajuda] SIRENES POLICIA
#5

pawn Код:
//Comando em ZCMD :
CMD:sirene(playerid)
{
    if(gTeam[playerid] == TEAM_COP || gTeam[playerid] == TEAM_ARMY || gTeam[playerid] == TEAM_CIA)
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            new sireneOBJ[MAX_PLAYERS] = CreateObject(19419,0.0,0.0,0.0,0.0,0.0,0.0,100.0);
            AttachObjectToVehicle(sireneOBJ[playerid],GetPlayerVehicleID(playerid),0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);//Mude as coordenadas se esta estiver errada.
        }else{
        SendClientMessage(playerid,COR,"[ERRO]: Vocк nгo estб em um veiculo");
        }
    }else{
    SendClientMessage(playerid,COR,"[ERRO]: Vocк nгo й um policial");
    }
    return 1;
}

Em CreateObject(... as coordenadas nгo importam , elas sу importam no AttachObjectToVehicle .
Adapte ao seu gamemode .
Reply


Messages In This Thread
SIRENES POLICIA - by davi54723 - 20.08.2012, 12:58
Re: SIRENES POLICIA - by Eduardo Honorato - 20.08.2012, 13:06
Re: SIRENES POLICIA - by Gleisson_. - 20.08.2012, 13:06
Re: SIRENES POLICIA - by Math3us - 20.08.2012, 13:06
Re: SIRENES POLICIA - by darkxdll - 20.08.2012, 13:10
Respuesta: Re: SIRENES POLICIA - by davi54723 - 20.08.2012, 13:10
Respuesta: Re: SIRENES POLICIA - by davi54723 - 20.08.2012, 13:12
Respuesta: Re: SIRENES POLICIA - by davi54723 - 20.08.2012, 13:15
Re: Respuesta: Re: SIRENES POLICIA - by Eduardo Honorato - 20.08.2012, 13:51
Respuesta: Re: Respuesta: Re: SIRENES POLICIA - by davi54723 - 20.08.2012, 17:53

Forum Jump:


Users browsing this thread: 1 Guest(s)