Vice City Multiplayer

VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [KiLLeR]hussen on December 21, 2010, 03:39:35 pm

Title: how to add cars on my server ??
Post by: [KiLLeR]hussen on December 21, 2010, 03:39:35 pm
hello guys,
i'm new in this forum and i play vc:mp from a time ago,
i opend a server and i wanna add cars in it
i scripted with gups v16a , and i have pawno
thnx for helpers :D
Title: Re: how to add cars on my server ??
Post by: Skirmant on December 21, 2010, 03:48:33 pm
When you open mode.pwn and scroll down you should eventually find loads of AddStaticVehicle functions. Just place your defined vehicle near those and everything should work fine.   
Title: Re: how to add cars on my server ??
Post by: Pawno on December 22, 2010, 03:43:44 am
Try,

 
Code: [Select]
public OnGameModeInit() //Example
{
    AddStaticVehicle(150, -1343.22204589, 1494.09130859, 298.59179687, 12, 13);
 return 1;
}
Code: [Select]
public OnGameModeInit()
{
    AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y, Float:spawn_z, Float:z_angle, color1, color2);
 return 1;
}

Vehicle id's: http://famp.ru/wiki/VehicleIDs
Car colors: http://famp.ru/wiki/CarColors

good lucky :)


Title: Re: how to add cars on my server ??
Post by: [KiLLeR]hussen on December 25, 2010, 04:04:37 pm
thnx for the help,
but where can i find the mode.pwn ??
i'm new soo thnx for help  :D

i found mode.pwn file on gamemodes at the server files,
but when i open i cant find addstaticvehicle,
help?
Title: Re: how to add cars on my server ??
Post by: _wiktor on December 25, 2010, 08:25:00 pm
Use your editor's search function :)
Title: Re: how to add cars on my server ??
Post by: [KiLLeR]hussen on December 26, 2010, 02:52:46 pm
what do u mean ???
sorry i didn't understand anything :D:D