22.01.2015, 12:28
pawn Код:
CMD:v(playerid, params[])
{
new
modelid,
Float:zPos[ 3 ];
if( sscanf( params, "i", modelid ) ) SendClientMessage(playerid, COLOR_GREY, "USAGE: /v [vehicle id]");
if(modelid < 400 || modelid > 611) return SendClientMessage(playerid, COLOR_GREY, "ERROR: Invalid vehicle ID.");
{
GetPlayerPos( playerid, zPos[ 0 ], zPos[ 1 ], zPos[ 2 ] );
CreateVehicle( modelid, zPos[0], zPos[ 1 ], zPos[ 2 ], 0, 155, 1, -1);
}
return 1;
}