Number Plate Changing Command Help Needed!!
#1

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;
}
Reply


Messages In This Thread
Number Plate Changing Command Help Needed!! - by dowster - 23.04.2011, 00:07
Re: Number Plate Changing Command Help Needed!! - by [L3th4l] - 23.04.2011, 00:13
Re: Number Plate Changing Command Help Needed!! - by dowster - 23.04.2011, 00:15

Forum Jump:


Users browsing this thread: 1 Guest(s)