Quote:
Originally Posted by [NWA]Hannes
Got this under commandtext.
and heres the command
pawn Код:
dcmd_v(playerid, params[]) { new car; if(sscanf(params, "z", car)) SendClientMessage(playerid, 0xFF0000AA, "Usage: /v [Vehicle ID]"); else if(car == INVALID_VEHICLE_ID) SendClientMessage(playerid, 0xFF0000AA, "Error: Unknown Vehicle ID"); else { new Float:X, Float:Y, Float:Z, Float:A, vehicle; GetPlayerPos(playerid, X, Y, Z); GetPlayerFacingAngle(playerid, A); vehicle = CreateVehicle(car, X, Y, Z, A, 0, 0, -1); PutPlayerInVehicle(playerid, vehicle, 0); } return 1; }
But it dont work, any idea why?
|
You have to use "i" or "d", since vehicle it's
id (number).
What you put was "z" which is a string that is optional, used for something like /kick id reason.