Vehicle id
#1

Hello!I want a command that gets you the car by it`s id.I know there are some on ******,but i only found the one that gets the vehicle model,like this one.
Код:
CMD:veh( playerid, params[] )
{
	new
	    modelid,
		Float:zPos[ 3 ];
        if (APlayerData[playerid][PlayerLevel] >= 2)
		{

	if( sscanf( params, "i", modelid ) ) SendClientMessage( playerid, 0xFF0000AA, "[ > ]{FF7E7E} Command USAGE: /veh [id]" );
	else
	{
		GetPlayerPos( playerid, zPos[ 0 ], zPos[ 1 ], zPos[ 2 ] );
		CreateVehicle( modelid, zPos[0], zPos[ 1 ], zPos[ 2 ], 0, 1, 1, 80000);
	}
        }
	return true;
}
I want one that gets them from id(1,2,3...).Example:When you write /veh 15 it will get you car with id 15 from the server.
Thanks!
Reply


Messages In This Thread
Vehicle id - by George0305 - 21.08.2013, 05:36
Re: Vehicle id - by Aliassassin123456 - 21.08.2013, 05:56
Re: Vehicle id - by George0305 - 21.08.2013, 06:04
Re: Vehicle id - by George0305 - 21.08.2013, 07:34
Re: Vehicle id - by Giroud12 - 21.08.2013, 07:41
Re: Vehicle id - by George0305 - 22.08.2013, 09:08
Re: Vehicle id - by Konstantinos - 22.08.2013, 09:16
Re: Vehicle id - by George0305 - 22.08.2013, 09:55
Re: Vehicle id - by Konstantinos - 22.08.2013, 10:02
Re: Vehicle id - by George0305 - 22.08.2013, 10:12

Forum Jump:


Users browsing this thread: 1 Guest(s)