#include <a_samp>
public OnFilterScriptInit()
{
print("n--------------------------------------");
print(" Kendi arac plakani yarat!");
print("Yapimci: Victious - Ceviri: Sn!per");
print("--------------------------------------n");
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/plakasec", 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,"Aracta degilsiniz!");
ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"{EE7777}Arac Plakasi","{00CC66}Kullanmak istediginiz plakayi asagiya giriniz.","Tamam","Iptal");
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,"Iptal ettiniz!"); } }
return 1;
}