Author Topic: how to add cars on my server ??  (Read 3299 times)

0 Members and 1 Guest are viewing this topic.

Offline [KiLLeR]hussen

  • Street Thug
  • *
  • Posts: 9
    • View Profile
how to add cars on my server ??
« 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

Offline Skirmant

  • Made Man
  • ***
  • Posts: 134
    • View Profile
Re: how to add cars on my server ??
« Reply #1 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.   

Offline Pawno

  • Street Thug
  • *
  • Posts: 15
    • View Profile
Re: how to add cars on my server ??
« Reply #2 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 :)



Offline [KiLLeR]hussen

  • Street Thug
  • *
  • Posts: 9
    • View Profile
Re: how to add cars on my server ??
« Reply #3 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?
« Last Edit: December 25, 2010, 08:21:05 pm by StriKe »

Offline _wiktor

  • Street Thug
  • *
  • Posts: 4
    • View Profile
Re: how to add cars on my server ??
« Reply #4 on: December 25, 2010, 08:25:00 pm »
Use your editor's search function :)

Offline [KiLLeR]hussen

  • Street Thug
  • *
  • Posts: 9
    • View Profile
Re: how to add cars on my server ??
« Reply #5 on: December 26, 2010, 02:52:46 pm »
what do u mean ???
sorry i didn't understand anything :D:D