Vice City Multiplayer

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

Title: how to add cars on my server ??
Post by: [KiLLeR]hussen on December 21, 2010, 01: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, 01: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, 01:43:44 AM
Try,

public OnGameModeInit() //Example
{
    AddStaticVehicle(150, -1343.22204589, 1494.09130859, 298.59179687, 12, 13);
return 1;
}

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, 02: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, 06: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, 12:52:46 PM
what do u mean ???
sorry i didn't understand anything :D:D