Quote:
Originally Posted by Anuris
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."); else { GetPlayerPos( playerid, zPos[ 0 ], zPos[ 1 ], zPos[ 2 ] ); CreateVehicle( modelid, zPos[0], zPos[ 1 ], zPos[ 2 ], 0, 155, 1, -1); } return 1; }
|
it works but if i just do /v to show the USAGE message it still comes up with the INVALID VEHICLE ID message aswell, anyway to stop this?