License Plate Sistem
#8

ok,I have this:
Код:
#include <a_samp>

public OnFilterScriptInit()
{
	print("--------------------------------------");
	print(" 
	print("--------------------------------------");
	return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/vehplate", cmdtext, true, 10) == 0) {
		new Float:x,Float:y,Float:z,Float:ang;
		GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
		GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
	    if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"You're not in a vehicle!");
	    ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"{EE7777}Vehicle Numberplate","{00CC66}Input your new vehicle numberplate below.","Yes","Cancel");
		return 1; }
	return 0;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
	if(dialogid == 0) {
		if(response) {
            new Float:x,Float:y,Float:z,Float:ang;
            SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
			GetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
			GetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
			SetVehicleToRespawn(GetPlayerVehicleID(playerid));
			SetVehiclePos(GetPlayerVehicleID(playerid),x,y,z);
			PutPlayerInVehicle(playerid,GetPlayerVehicleID(playerid),0);
			SetVehicleZAngle(GetPlayerVehicleID(playerid),ang);
		} else {
		   	SendClientMessage(playerid,0xFFFFFFFF,"You cancelled!"); } }
	return 1; }
.....
How can I save licenses plate in scriptfiles?
Reply


Messages In This Thread
License Plate Sistem - by rashier - 08.07.2011, 16:57
Re: License Plate Sistem - by rashier - 09.07.2011, 05:36
Re: License Plate Sistem - by HayZatic - 09.07.2011, 07:13
Re: License Plate Sistem - by rashier - 09.07.2011, 12:05
Re: License Plate Sistem - by rashier - 09.07.2011, 18:47
Re: License Plate Sistem - by Wesley221 - 09.07.2011, 18:58
Re: License Plate Sistem - by FireCat - 09.07.2011, 19:32
Re: License Plate Sistem - by rashier - 10.07.2011, 01:13
Re: License Plate Sistem - by rashier - 10.07.2011, 12:10

Forum Jump:


Users browsing this thread: 1 Guest(s)