12.12.2010, 21:48
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:
ongamemodeinit:
fin do gm:
ajuda ai PF!!
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!"); }
}
}
}
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 ========================== -----------------------------------------------------------------------
pawn Код:
public CarroMSAMP(idcarro)
{
if((598 >= CarroDoMundoSAMP[0]) && (599 <= CarroDoMundoSAMP[5]))
{
return 1;
}
return 0;
}