Код:
PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Vettйl egy sнmaszkot.");
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
SendClientMessage(playerid, COLOR_WHITE, "Parancsok: /maszkfel | /maszkle");
PlayerInfo[playerid][pMaszk] = 1;
return 1;
}
else
{
SendClientMessage(playerid, COLOR_WHITE, " Nincs elйg pйnzed.");
}
}
return 1;
}
//------------------------------------------[Trafipax]----------------------------------------
if(dialogid == D_ITRAFIPAX)
{
if(!response) return SendClientMessage(playerid, COLOR_LIGHTRED, "Kilйptйl a menьből.");
{
if(listitem == 17)
{
if(trafipax[playerid] == 0)
{
trafipax[playerid] = 1;
format(playerid,"Bekapcsolta a trafipaxot...");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTGREEN, "Mбr be van kapcsolva!");
return 1;
}
}
else if(listitem == 18)
{
if(trafipax[playerid] != 0)
{
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Kikapcsoltad a traffipaxod!");
sebesseg[playerid] = 0;
birsag[playerid] = 0;
trafipax[playerid] = 0;
format(playerid,"Kikapcsolta a trafipaxot...");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Be se volt kapcsolva!");
return 1;
}
}
else if(listitem == 19)
{
if(trafipax[playerid] != 0)
{
format(playerid,"Kalibrбlja a trafipaxot...");
ShowPlayerDialog(playerid, D_ITRAFIPAXKALIBRALAS, DIALOG_STYLE_INPUT,"SebessйgKorlбt!","Нrd be a SebessйgKorlбtozбs йrtйkйt!!\n Йrtйk:","Ok","Mйgse");
}
else
{
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Előszцr kapcsold be!")
return 1;
}
}
}
}
if(dialogid == D_ITRAFIPAXKALIBRALAS)
{
if(response)
{
strmid(Typed[playerid], inputtext, 0, strval(inputtext), 255);
if(!strcmp(Typed[playerid], "Nincs", true))
{
ShowPlayerDialog(playerid, D_ITRAFIPAXKALIBRALAS, DIALOG_STYLE_INPUT,"Hiba!!","Nem adtбl meg SebessйgKorlбtozбsi Йrtйket!\n Йrtйk:","Ok","Mйgse");
}
else
{
sebesseg[playerid] = strval(inputtext);
ShowPlayerDialog(playerid, D_ITRAFIPAXKALIBRALAS2, DIALOG_STYLE_INPUT,"Bьntetйs:","Нrd be a bьntetйs йrtйkйt!!\n Йrtйk:","Ok","Mйgse");
SendClientMessage(playerid, COLOR_LIGHTGREEN,"SebessйgKorlбt Beбllнtva: %d km/h",sebesseg[playerid]);
}
}
}
if(dialogid == D_ITRAFIPAXKALIBRALAS2)
{
if(response)
{
strmid(Typed[playerid], inputtext, 0, strval(inputtext), 255);
if(!strcmp(Typed[playerid], "Nincs", true))
{
ShowPlayerDialog(playerid, D_ITRAFIPAXKALIBRALAS2, DIALOG_STYLE_INPUT,"Hiba!!","Nem adtбl meg Bьntetйsi Йrtйket!\n Йrtйk:","Ok","Mйgse");
}
else
{
birsag[playerid] = strval(inputtext);
SendClientMessage(playerid, COLOR_LIGHTGREEN,"Bьntetйs Beбllнtva: %d Ft",birsag[playerid]);
trafi[playerid] = Create3DTextLabel(string,0x00AA0099,30.0,40.0,50.0,40.0,0);
Attach3DTextLabelToPlayer(trafi[playerid], playerid, 0.0, 0.0, - 0.6);
}
}
}
return 0;
}