SIRENES POLICIA -
davi54723 - 20.08.2012
JБ PROCUREI NO ******, NO SEARCH, EM TUDO QUE Й LOCAL, MAIS MESMO QUANDO ACHO, VOU COPILAR DБ SEMPRE UM ERRO, QUERO UM SISTEMA DE SIRENE PARA QUALQUER CARRO, QUERO UM ATTACH, QUANDO DIGITE /SIRENE APAREЗA UMA SIRENE EM QUALQUER VEICULO, QUERO SEM O ISACOP POIS NГO USO ELE.
PF ME AJUDEM..
Re: SIRENES POLICIA -
Eduardo Honorato - 20.08.2012
Код:
if(strcmp(cmd, "/sirene", true) == 0)
{
new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene adicionada");
}
else
{
RemoveAttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene retirada");
return 1;
}
AJUDEI? REPUTATION PLIX!
Re: SIRENES POLICIA -
Gleisson_. - 20.08.2012
Tenho esse que й mais por neon da policia, aparece um neon
Obs: ainda n testei.
pawn Код:
if(strcmp(cmdtext, "/Sirene", true) == 0) {
if(IsPlayerInAnyVehicle(playerid)) {
SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0));
SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0);
return 1;
}
Re: SIRENES POLICIA -
Math3us - 20.08.2012
davi existem uns sistema de neon que tem sirene procura um e pega a sirene dele sу
Re: SIRENES POLICIA -
darkxdll - 20.08.2012
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 .
Respuesta: Re: SIRENES POLICIA -
davi54723 - 20.08.2012
Quote:
Originally Posted by Eduardo Honorato
Код:
if(strcmp(cmd, "/sirene", true) == 0)
{
new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene adicionada");
}
else
{
RemoveAttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene retirada");
return 1;
}
AJUDEI? REPUTATION PLIX!
|
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : error: 010: invalid function or declaration
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : error: 010: invalid function or declaration
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : error: 010: invalid function or declaration
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : warning: 203: symbol is never used: "RemoveAttachObjectToVehicle"
Respuesta: Re: SIRENES POLICIA -
davi54723 - 20.08.2012
Quote:
Originally Posted by Gleisson_.
Tenho esse que й mais por neon da policia, aparece um neon
Obs: ainda n testei.
pawn Код:
if(strcmp(cmdtext, "/Sirene", true) == 0) { if(IsPlayerInAnyVehicle(playerid)) { SetPVarInt(playerid, "front", CreateObject(18646,0,0,0,0,0,0)); SetPVarInt(playerid, "front1", CreateObject(18646,0,0,0,0,0,0)); AttachObjectToVehicle(GetPVarInt(playerid, "front"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0); AttachObjectToVehicle(GetPVarInt(playerid, "front1"), GetPlayerVehicleID(playerid), -0.0, 1.5, -0.6, 2.0, 2.0, 3.0); return 1; }
|
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "ShowLoginScreen"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "ShowRegisterScreen"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 004: function "ResetVariables" is not implemented
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 004: function "RemoveRoadblock" is not implemented
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerObjectUpdate"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "StopLoopingAnim"
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(2321) : error: 017: undefined symbol "PlayerName"
Respuesta: Re: SIRENES POLICIA -
davi54723 - 20.08.2012
Quote:
Originally Posted by Eduardo Honorato
Код:
if(strcmp(cmd, "/sirene", true) == 0)
{
new objectid = CreateObject(19419, 0, 0, 0, 0, 0, 0);
AttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene adicionada");
}
else
{
RemoveAttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene retirada");
return 1;
}
AJUDEI? REPUTATION PLIX!
|
Retirei o
Код:
else
{
RemoveAttachObjectToVehicle(objectid, GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
SendClientMessage(playerid, COLOR_YELLOW, "sirene retirada");
ai deu certo, sу que a sirene n fica colada no carro fica mais alto... tem como arrumar?
Re: Respuesta: Re: SIRENES POLICIA -
Eduardo Honorato - 20.08.2012
Quote:
Originally Posted by davi54723
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : error: 010: invalid function or declaration
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : error: 010: invalid function or declaration
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : error: 010: invalid function or declaration
C:\Users\DaviWindows\Desktop\Policia x Ladrгo\gamemodes\[CSMBR].pwn(3388 -- 3390) : warning: 203: symbol is never used: "RemoveAttachObjectToVehicle"
|
No lugar do "RemoveAttachObjectVehicle" use um "Destroy" pois se vc tirar ele na hora que vc usar o "/sirene" vai ficar pra sempre, eu creio que nao hб como deixar mais colado no carro, mais faзa isso que da certo
Respuesta: Re: Respuesta: Re: SIRENES POLICIA -
davi54723 - 20.08.2012
Quote:
Originally Posted by Eduardo Honorato
No lugar do "RemoveAttachObjectVehicle" use um "Destroy" pois se vc tirar ele na hora que vc usar o "/sirene" vai ficar pra sempre, eu creio que nao hб como deixar mais colado no carro, mais faзa isso que da certo
|
C:\Users\DaviWindows\Desktop\[CSMBR].pwn(3391) : error: 017: undefined symbol "Destroy"