addsiren 0.3.7 help
#6

Quote:
Originally Posted by FuNkYTheGreat
Посмотреть сообщение
PHP код:
public onCreateFactionVehicle(factionidmodelFloat:XFloat:YFloat:ZFloat:Anglec1c2) {
    new 
id mysql_insert_id();
    new 
msg[128],carid;
    
format(msgsizeof(msg), "* Faction Vehicle SQL ID: %d"id);
    
ABroadcast(X11_YELLOWmsgEAdminFlags_FactionAdmin);
      if(
factionid == 1)
      {
       
carid CreateVehicle(model,X,Y,Z,Angle,c1,c2,DEF_RESPAWN_DELAY,1);
       } else {  
carid CreateVehicle(model,X,Y,Z,Angle,c1,c2,DEF_RESPAWN_DELAY,0);}
       if(!
IsACar(model)) {
        
VehicleInfo[carid][EVEngine] = 1;
    } else {
        
VehicleInfo[carid][EVEngine] = 0;
    }
    new 
engine,lights,alarm,doors,bonnet,boot,objective;
    
GetVehicleParamsEx(carid,engine,lights,alarm,doors,bonnet,boot,objective);
    
SetVehicleParamsEx(carid,VehicleInfo[carid][EVEngine],lights,alarm,doors,bonnet,boot,objective);
    
VehicleInfo[carid][EVToDelete] = 0;
    
VehicleInfo[carid][EVOwner] = factionid;
    
VehicleInfo[carid][EVColour][0] = c1;
    
VehicleInfo[carid][EVColour][1] = c2;
    
VehicleInfo[carid][EVFuel] = 100;
    
VehicleInfo[carid][EVRadioStation] = -1;
    
VehicleInfo[carid][EVLockType] = ELockType_Default;
    
VehicleInfo[carid][EVSQLID] = id;
    
VehicleInfo[carid][EVType] = EVehicleType_Faction;
    if(
getFactionType(VehicleInfo[carid][EVOwner]) != EFactionType_Hitman) {
        
SetVehicleNumberPlate(caridGetFactionName(factionid));
    }
    
SetVehicleStation(carid0);

Same as that guy said, It can be done by this thing..
Thanks both of you, fixed +REP
Reply


Messages In This Thread
addsiren 0.3.7 help - by Puff - 09.09.2017, 20:48
Re: addsiren 0.3.7 help - by Kane - 09.09.2017, 20:50
Re: addsiren 0.3.7 help - by pepetorres194 - 09.09.2017, 22:24
Re: addsiren 0.3.7 help - by Puff - 10.09.2017, 05:25
Re: addsiren 0.3.7 help - by FuNkYTheGreat - 10.09.2017, 06:27
Re: addsiren 0.3.7 help - by Puff - 10.09.2017, 10:41

Forum Jump:


Users browsing this thread: 1 Guest(s)