Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Topics - aadb

#1
I've seen to get a strange problem when spawning a car by just using the /spawncar or my modifiied /v command.

Underneath is the code which has been used in several default script.
else if ( cmd == "v" )
    {
         if ( text )
{
local veh = FindVehicle( text.tointeger() );
veh.Pos = Vector( ( player.Pos.x + 2 ), player.Pos.y, ( player.Pos.z ) );
     MessagePlayer( "[#ffffff][INFO][#00ff00]---> You have spawned car ID : [ " + veh.ID + " ).", player );
}
else MessagePlayer( "[#ffffff][INFO][#00ff00] Type /v <car id >.", player );
     return 1;
    }

For some reason spawning a car with ID 111 doesnt spawn the car that has ID 111 it just spawns randomly and not even all models sometimes 111 to 120 seem to be the same spawned car.

Anyone know's how to solve this?

Thanks in advance