License Plate Sistem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: License Plate Sistem (
/showthread.php?tid=267474)
License Plate Sistem -
rashier - 08.07.2011
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.
Re: License Plate Sistem -
rashier - 09.07.2011
Please man,help me...
Re: License Plate Sistem -
HayZatic - 09.07.2011
Thats a shit loads of work try the Search Button .
Re: License Plate Sistem -
rashier - 09.07.2011
I search man,but not work corectly...please help me .
Re: License Plate Sistem -
rashier - 09.07.2011
someone to help me?please...
Re: License Plate Sistem -
Wesley221 - 09.07.2011
https://sampwiki.blast.hk/wiki/SetVehicleNumberPlate
This is what you need. Just need to change the numberplate for each vehicle yourself.
Re: License Plate Sistem -
FireCat - 09.07.2011
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);
}
Re: License Plate Sistem -
rashier - 10.07.2011
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?
Re: License Plate Sistem -
rashier - 10.07.2011
Someone One to help me?please...