21.08.2013, 05:36
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.
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!
Код:
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; }
Thanks!