Hello all ezt most irtuk haverommal remélem tetszik valakinek
[pawn]#include <a_samp>
#include <zcmd>
main()
{
print(\"\\n=========================================\");
print(\" Rendszam atalakitto By ]$[R3woX]$[ és [AIR.FORCE]Csont\");
print(\"=========================================\\n\");
}
CMD:rendszam(playerid)
{
ShowPlayerDialog(playerid, 8357, DIALOG_STYLE_INPUT,\"Írd be a rendszámot!\",\"Renszám:\", \"Felhelyez\",\"\");
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 8357)
{
if(response == 1)
{
new Float:x,Float:y,Float:z,Float:ang, string[128];
format(string, 128, \" Új rendszám: %s\", inputtext);
SendClientMessage(playerid, 0x0000FFAA, string);
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);
}
}
return 1;
}[/pawn]