27.10.2012, 15:55
Command:
Dialog:
And now how to set to this.When i type /tablicki dialog dont show, help me to show dialog and change car plates please.GIVING REP ++ WHO HELP ME !
pawn Код:
if(strcmp(cmd, "/tablicki", true) == 0)
{
if(gPlayerLogged[playerid] = 0)
{
SCM(playerid,COLOR_WHITE, "{FF4040}GRESKA:{FFFFFF}Seuste ne ste Logiran!");
}
ShowPlayerDialog(playerid, 123456, DIALOG_STYLE_INPUT, "{FFFFFF}Change your vehicle number plate","{FFFFFF}Please enter your desired text for your vehicle number plate.","Set","Cancel");
return 1;
}
pawn Код:
if(dialogid == 123456)
{
if(response)
{
SetVehicleNumberPlate(playerVeh, inputtext);
GetPlayerPos(playerid, vehPos[0], vehPos[1], vehPos[2]);
GetVehicleZAngle(playerVeh, vehPos[3]);
SetVehicleToRespawn(playerVeh);
SetVehiclePos(playerVeh, vehPos[0], vehPos[1], vehPos[2] );
SetVehicleZAngle(playerVeh, vehPos[3]);
}
else
{
SendClientMessage(playerid, COLOR_WHITE, "{37F906}INFO:{FFFFFF}Mora da imate tablicka!");
return 1;
}
return 1;
}