Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- new string[256];
- if(dialogid == 552)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SendClientMessage(playerid,0x11DB1CFF, "Òè ïðèå ïðàâèëàòà!");
- }
- if(listitem == 1)
- {
- SendClientMessage(playerid, COLOR_RED, "Òè îòêàçà äà ïðèåìåø ïðàâèëàòà è áåøå èçãîíåí îò èãðàòà!");
- Kick(playerid);
- }
- }
- }
- if(dialogid == 1324)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerCash(playerid, 50000);
- SendClientMessage(playerid, COLOR_RED, "Òè ñïå÷åëè $50000$");
- PlayerInfo[playerid][pHealme] = 5*60;
- }
- if(listitem == 1)
- {
- GivePlayerCash(playerid, 50000);
- SendClientMessage(playerid, COLOR_RED, "Òè ñïå÷åëè $50000$");
- PlayerInfo[playerid][pHealme] = 5*60;
- }
- if(listitem == 2)
- {
- GivePlayerCash(playerid, 50000);
- SendClientMessage(playerid, COLOR_RED, "Òè ñïå÷åëè $50000$");
- PlayerInfo[playerid][pHealme] = 5*60;
- }
- if(listitem == 3)
- {
- SendClientMessage(playerid, COLOR_RED, "Òè Çàãóáè");
- PlayerInfo[playerid][pHealme] = 5*60;
- }
- if(listitem == 4)
- {
- SendClientMessage(playerid, COLOR_RED, "Òè Çàãóáè");
- PlayerInfo[playerid][pHealme] = 5*60;
- }
- if(listitem == 5)
- {
- SendClientMessage(playerid, COLOR_RED, "Òè Çàãóáè");
- PlayerInfo[playerid][pHealme] = 5*60;
- }
- }
- }
- if(dialogid == 678)
- {
- if(response)
- {
- if(listitem == 0)
- {
- SetPlayerHealth(playerid, 100);
- SetPlayerArmour(playerid, 100);
- ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
- }
- if(listitem == 1)
- {
- GivePlayerGun(playerid, 24);
- GivePlayerGun(playerid, 26);
- GivePlayerGun(playerid, 28);
- GivePlayerGun(playerid, 34);
- GivePlayerGun(playerid, 43);
- GivePlayerGun(playerid, 38);
- SendClientMessage(playerid, COLOR_RED, "Òè ñè âçå swat weapons!");
- ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
- }
- if(listitem == 2)
- {
- SetPlayerSkin(playerid, 285);
- SendClientMessage(playerid, COLOR_RED, "Òè ñè âçå äðåõèòå íà swat members!");
- ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
- }
- if(listitem == 3)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- SetVehicleHealth(vehicleid, 1000);
- SendClientMessage(playerid, COLOR_RED, "Òè ïîïðàâè êîëàòà!");
- ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
- }
- if(listitem == 4)
- {
- new vehicleid = GetPlayerVehicleID(playerid);
- SetVehicleHealth(vehicleid, 150000);
- SendClientMessage(playerid, COLOR_RED, "Òè âêëþ÷è áðîíèðàíàòà çàùèòà!");
- ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
- }
- }
- }
- if(dialogid == 12346 || dialogid == 12347)
- {
- if(response)
- {
- if(strlen(inputtext))
- {
- new tmppass[64];
- strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
- OnPlayerLogin(playerid,tmppass);
- }
- else
- {
- new loginstring[256];
- SendClientMessage(playerid, COLOR_WHITE, "SERVER: Òðÿáâà äà âúâåäåø òâîÿòà ïàðîëà");
- format(loginstring,sizeof(loginstring),"[ B-U-L-G-A-R-I-A-N ][UNIQUE][ S-E-R-V-E-R][0.3]\nÒîâà èìå å ðåãèñòðèðàíî. Ìîëÿ, âúâåäè òâîÿòà ïàðîëà.");
- ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
- }
- }
- else
- {
- Kick(playerid);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement