23.04.2011, 00:07
So I'm in the process of converting all my commands to zcmd, and I decided to mess around with a number plate changer command to get away from all the copy and pasting. I believe i have all the floats in the right spots but my problem is getting it so it will set the numberplate text to what the player specified. Here's the code I have so far:
Код:
COMMAND:numplate(playerid,params[])
{
new numplate;
(!sscanf(params, "ui", numplate));
new Float:x, Float:y, Float:z, Float:zr;
new vh;
vh = GetPlayerVehicleID(playerid);
SetVehicleNumberPlate(vh, numplate);
GetVehiclePos(vh, x, y, z);
GetVehicleZAngle(vh, zr);
SetVehicleToRespawn(vh);
SetVehiclePos(vh, x, y, z);
SetVehicleZAngle(vh, zr);
return 1;
}

