• Welcome to Vice City Multiplayer.
 

how to add cars on my server ??

Started by [KiLLeR]hussen, December 21, 2010, 01:39:35 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

[KiLLeR]hussen

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

Skirmant

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.   
I know advance mIRC, average C++, basic Pawn & Squirrel, very basic Java Script.

Pawno

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 :)



[KiLLeR]hussen

#3
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?

_wiktor


[KiLLeR]hussen

what do u mean ???
sorry i didn't understand anything :D:D