[PROBLEMA]Carros -
Xapita_Halls - 12.12.2010
Galera tipo eu criei carros para a fab funfa legal as outras org mas na fab entr e tals e o carinha sai
mais nao da vc nao e da fab q nem das outra org!!
ajuda aeplz
Re: [PROBLEMA]Carros - [BEP]AcerPilot - 12.12.2010
Nгo entendi nada, escreva com clareza.
Re: [PROBLEMA]Carros -
jhony test - 12.12.2010
Posta o Code?
AW: [PROBLEMA]Carros -
Xapita_Halls - 12.12.2010
tipo to criando carro pra org as otura org entra no carro e da vc nao e da fab certo! mas a fab id 25 tu entra e sai tbm...
onplayerstatechange:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new CARRO = GetPlayerVehicleID(playerid);
if(CarroMSAMP(CARRO))
{
if(CarroMSAMP(CARRO))
{
if(IsAFAB(playerid)) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й da F.A.B!"); }
}
}
}
ongamemodeinit:
pawn Код:
//CARROS DA FAB====================================================
CarroDoMundoSAMP[0] = AddStaticVehicleEx(598,-1186.4696,-167.7644,14.1484,132.4433,0,65,250000); // VIATURA 1
CarroDoMundoSAMP[1] = AddStaticVehicleEx(598,-1182.8829,-172.3793,14.1484,132.4433,0,65,250000); // viATURA2
CarroDoMundoSAMP[2] = AddStaticVehicleEx(598,-1179.5951,-176.6056,14.1484,132.4433,0,65,250000); //VIATURA3
CarroDoMundoSAMP[3] = AddStaticVehicleEx(598,-1176.2163,-180.9616,14.1484,132.4433,0,65,250000);//viatura 4
CarroDoMundoSAMP[4] = AddStaticVehicleEx(598,-1172.0638,-186.1908,14.1484,132.4433,0,65,250000);
CarroDoMundoSAMP[5] = AddStaticVehicleEx(599,-1168.1929,-191.8923,14.1484,132.4433,0,65,250000);
//FIM ========================== -----------------------------------------------------------------------
fin do gm:
pawn Код:
public CarroMSAMP(idcarro)
{
if((598 >= CarroDoMundoSAMP[0]) && (599 <= CarroDoMundoSAMP[5]))
{
return 1;
}
return 0;
}
ajuda ai PF!!
Re: [PROBLEMA]Carros -
KevinsL - 12.12.2010
rei do copy/paste
AW: [PROBLEMA]Carros -
Xapita_Halls - 12.12.2010
ajuda pooooooooo
Re: [PROBLEMA]Carros -
KevinsL - 12.12.2010
toma ae rei do copy/paste
pawn Код:
forward CarroDAFAB(idcarro);
new CARROSDAFAB[6];
if(newstate == PLAYER_STATE_DRIVER)
{
new CARRO = GetPlayerVehicleID(playerid);
if(CarroDAFAB(CARRO))
{
if(IsAFAB(playerid)) { }
else {
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й da F.A.B!"); }
}
}
CARROSDAFAB[0] = AddStaticVehicleEx(598,-1186.4696,-167.7644,14.1484,132.4433,0,65,250000); // VIATURA 1
CARROSDAFAB[1] = AddStaticVehicleEx(598,-1182.8829,-172.3793,14.1484,132.4433,0,65,250000); // viATURA2
CARROSDAFAB[2] = AddStaticVehicleEx(598,-1179.5951,-176.6056,14.1484,132.4433,0,65,250000); //VIATURA3
CARROSDAFAB[3] = AddStaticVehicleEx(598,-1176.2163,-180.9616,14.1484,132.4433,0,65,250000);//viatura 4
CARROSDAFAB[4] = AddStaticVehicleEx(598,-1172.0638,-186.1908,14.1484,132.4433,0,65,250000);
CARROSDAFAB[5] = AddStaticVehicleEx(599,-1168.1929,-191.8923,14.1484,132.4433,0,65,250000);
public CarroDAFAB(idcarro)
{
if((idcarro >= CARROSDAFAB[0]) && (idcarro <= CARROSDAFAB[5])) return 1;
return 0;
}
Re: [PROBLEMA]Carros -
Diogo_braz - 12.12.2010
Vou ajuda como vc respondeu no outro topico..
cagandof1241251
Re: [PROBLEMA]Carros -
KevinsL - 12.12.2010
lol '
Re: [PROBLEMA]Carros - rjjj - 12.12.2010
Montei o cуdigo pra vocк, apenas troque sua public:
pawn Код:
public CarroMSAMP(idcarro)
{
if(idcarro==CarroDoMundoSAMP[0]||idcarro==CarroDoMundoSAMP[1]||idcarro==CarroDoMundoSAMP[2]
||idcarro==CarroDoMundoSAMP[3]||idcarro==CarroDoMundoSAMP[4]||idcarro==CarroDoMundoSAMP[5])
{
return 1;
}
return 0;
}
Espero ter ajudado