Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/Numeriai", cmdtext, true, 10) == 0)
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,0xFFFFFFFF,"Jūs Nesate Transporte");
new string[60];
format(string,60,"Iveskite Savo Numerius.",string);
ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"{EE7777}Transporto Numeriai",string,"Gerai","Iseiti");
return 1;
}
return 0;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(dialogid == 0) {
if(response) {
SetVehicleNumberPlate(GetPlayerVehicleID(playerid), inputtext);
SetVehicleToRespawn(GetPlayerVehicleID(playerid));
} else {
SendClientMessage(playerid,0xFFFFFFFF,"Atљaukta!");
}
}
return 1;
}
Use y_ini, it's better, ****** made a guide how to use y_ini, search for it.