Quote:
Originally Posted by newbie scripter
pawn Код:
CMD:BringCar(playerid, params[]) { new vehid; if(sscanf(params, "i", vehid)) return SendClientMessage(playerid, -1, "USAGE : /bringcar [Vehicle Id]"); for(new i = 0, k = MAX_VEHICLES; i < k; i++) { if( i == vehid) { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); SetVehiclePos(vehid, x + 5, y + 5, z); PutPlayerInVehicle(playerid, vehid); } else return SendClientMessage(playerid, -1, "ERROR: Invalid Vehicle ID"); } return 1; }
this code is changed into an include, havent tested it thou it might be useful.
|
Purpose of this thread is not to convert OP's code to a single untested command (just so you know, posting untested code is against rules). You should rather comment like 'nice job' whatsoever or dont post at all
--
OT:
Good werk mate