License Plate Sistem
#1

Hi. Can you help me to make a system for car license plates? .. I would like for each car to have a license plate individually. And that will be created only by the police.
I want to be like: LS-01-XXX (xxx = what does each player). And to save the license plates. Please help me nice, just do not know how to do, thank you very much, and ask me what you need. (In gamemode)....Sorry for my bad english.
Reply
#2

Please man,help me...
Reply
#3

Thats a shit loads of work try the Search Button .
Reply
#4

I search man,but not work corectly...please help me .
Reply
#5

someone to help me?please...
Reply
#6

https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
This is what you need. Just need to change the numberplate for each vehicle yourself.
Reply
#7

Ill help you a bit
pawn Код:
new
string[20]
;
for(new f = 0; f < MAX_VEHICLES;f++)
{
        format(string,sizeof string,"LS-01-%i",f*2);
        SetVehicleNumberPlate(f,string);
}
Reply
#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
#9

Someone One to help me?please...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)