Vehicle color
#6

Quote:
Originally Posted by [KHK]Khalid
View Post
Show us your "car saving stock" code!
PHP Code:
stock SaveVehicles(id)
{
    new 
file[64];
    
format(filesizeof(file), "Vehicles/%d.ini"id);
    new 
INI:Handle INI_Open(file);
   
    if(
Handle != INI_NO_FILE)
    {
        
INI_WriteString(Handle"VehicleOwner"VehicleInfo[id][vOwner]);
        
INI_WriteInt(Handle"VehicleModel"VehicleInfo[id][vModel]);
        
INI_WriteInt(Handle"VehicleColor1"VehicleInfo[id][vCol1]);
        
INI_WriteInt(Handle"VehicleColor2"VehicleInfo[id][vCol2]);
        
INI_WriteFloat(Handle,"VehPosX"VehicleInfo[id][vPosX]);
        
INI_WriteFloat(Handle,"VehPosY"VehicleInfo[id][vPosY]);
        
INI_WriteFloat(Handle,"VehPosZ"VehicleInfo[id][vPosZ]);
        
INI_WriteFloat(Handle,"VehPosA"VehicleInfo[id][vPosA]);
        
INI_Close(Handle);
    }

Quote:
Originally Posted by ikey07
View Post
any chance you have some other script which use OnVehicleRespray and you have return 1; in it ?
My script is in a filterscript and gamemode is blank i didnt scripted anything inside gamemode and removed the "OnVehicleRespray" part.
Reply


Messages In This Thread
Vehicle color - by SalmaN97 - 25.04.2016, 03:07
Re: Vehicle color - by Vince - 25.04.2016, 06:21
Re: Vehicle color - by SalmaN97 - 25.04.2016, 07:27
Re: Vehicle color - by [KHK]Khalid - 25.04.2016, 12:04
Re: Vehicle color - by ikey07 - 25.04.2016, 12:40
Re: Vehicle color - by SalmaN97 - 26.04.2016, 00:05
Re: Vehicle color - by Sew_Sumi - 26.04.2016, 01:30
Re: Vehicle color - by SalmaN97 - 26.04.2016, 08:09

Forum Jump:


Users browsing this thread: 1 Guest(s)