pawn Код:
if(dialogid == 3207)
{
if(response)
{
new zone[MAX_ZONE_NAME];
new Float:x, Float:y, Float:z;
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
if(listitem == 0)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Repair");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 1)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Refuel");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 2)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Tow");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
}
else
{
DeletePVar(playerid, "ChoosingFix");
return 0;
}
}
The problem is when i /service rr the OnDialogresponse doesn't Show to the Rapid Faction
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[]) {
new
sendername[MAX_PLAYER_NAME];
new string[876];
if(GetPVarInt(playerid, "dialog") != dialogid) { // Confirm the dialogid matches what we have in the PVar
format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly trying to spoof a dialog ID (%d).", GetPlayerNameEx(playerid), playerid, dialogid);
ABroadCast(COLOR_YELLOW, string, 2);
format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID.", GetPlayerNameEx(playerid));
AddAutomatedFlag(playerid, string);
format(string, sizeof(string), "%s has possibly tried to spoof a dialog ID (%d, %d).", GetPlayerNameEx(playerid), dialogid, response);
Log("logs/crash.log", string);
return 1;
}
DeletePVar(playerid, "dialog"); // Delete the PVar now we're done with it
if(!isnull(inputtext))
{
if(strfind(inputtext, "%s", true) != -1)
{
format(string, sizeof(string), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) is possibly dialog-exploiting by attempting to send a null string.", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, string, 2);
format(string, sizeof(string), "%s is possibly dialog-exploiting by attempting to send a null string.", GetPlayerNameEx(playerid));
AddAutomatedFlag(playerid, string);
format(string, sizeof(string), "%s has attempted to insert a false string placeholder into a dialog.", GetPlayerNameEx(playerid));
Log("logs/crash.log", string);
Kick(playerid);
return 1;
}
}
if(dialogid == DIALOG_INTERIOR_MENU) {//Interiors
if(response) {
new arrayid = listitem;
SetPlayerPos(playerid, InteriorDialogData[arrayid][0], InteriorDialogData[arrayid][1], InteriorDialogData[arrayid][2]);
SetPlayerInterior(playerid, InteriorDialogInteriors[arrayid][0]);
SetPlayerFacingAngle(playerid, InteriorDialogData[arrayid][3]);
format(string, sizeof(string), "[INTERIOR:] You teleported to interior ' %s '.", InteriorDialogNames[arrayid][0]);
SendClientMessage(playerid, 0xADD8E6FF, string);
}
else{
//The player has pressed "Close".
SendClientMessage(playerid, COLOR_RED, "You have closed the Interior Teleport Dialog.");
}
return 0;
}
if(dialogid == MAINMENU || dialogid == MAINMENU2)
{
if(dialogid == MAINMENU)
{
if(response == 0)
{
SendClientMessage(playerid, COLOR_NEWS, "You have been kicked out automatically.");
//KillTimer(GetPVarInt(playerid, "MenuTimer"));
Kick(playerid);
}
else
{
if(strlen(inputtext))
{
new passbuffer[129], name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof(name));
WP_Hash(passbuffer, sizeof(passbuffer), inputtext);
//SetTimerEx("MenuCamFix", 1000, false, "i", playerid);
//KillTimer(GetPVarInt(playerid, "MenuTimer"));
strcpy(AdminRelogPassword[playerid], passbuffer, 129);
OnPlayerLogin(playerid, passbuffer);
}
else
{
new titlestring[64], dstring[512];
format(titlestring, sizeof(titlestring), "{00FF00}Social Gaming Roleplay - Login");
format(dstring, sizeof(dstring), "{FFFFFF}Wrong password.\n\n{FFFFFF}That username is registered, please enter your password below.\n\n{00FF00}Username: {FFFFFF}%s\n\n {00FF00}Password:", GetPlayerNameEx(playerid));
ShowPlayerDialogEx(playerid,MAINMENU,DIALOG_STYLE_PASSWORD,titlestring,dstring,"Login","Quit");
if(gPlayerLogTries[playerid] == 2) { SendClientMessage(playerid, COLOR_NEWS, "Wrong password, you have been kicked out automatically."); Kick(playerid); }
}
}
}
if(dialogid == MAINMENU2)
{
if(response == 0)
{
SendClientMessage(playerid, COLOR_NEWS, "You have been kicked out automatically.");
//KillTimer(GetPVarInt(playerid, "MenuTimer"));
Kick(playerid);
}
else if(strlen(inputtext))
{
GetPlayerName(playerid, sendername, sizeof(sendername));
if(doesAccountExist(sendername))
{
SendClientMessage(playerid, COLOR_YELLOW, "That username is already taken, please choose a different one.");
return 1;
}
new passbuffer[129];
WP_Hash(passbuffer, sizeof(passbuffer), inputtext);
//SetTimerEx("MenuCamFix", 1000, false, "i", playerid);
//KillTimer(GetPVarInt(playerid, "MenuTimer"));
OnPlayerRegister(playerid,passbuffer);
}
}
}
else if(dialogid == REGISTRATION_MENU_ONE)
{
if(response)
{
PlayerInfo[playerid][pSex] = 1;
}
else
{
PlayerInfo[playerid][pSex] = 2;
}
ShowPlayerDialogEx(playerid, REGISTRATION_MENU_TWO, DIALOG_STYLE_INPUT, "{00FF00}Social Gaming Roleplay - Registration", "{FFFFFF}What do you want your character's age to be?\n\nNote: The age must be no lower than 18 and no higher than 90.", "Done", "");
}
else if(dialogid == REGISTRATION_MENU_TWO)
{
if(!IsNumeric(inputtext))
{
ShowPlayerDialogEx(playerid, REGISTRATION_MENU_TWO, DIALOG_STYLE_INPUT, "{00FF00}Social Gaming Roleplay - Registration", "{FFFFFF}ENTRY DECLINED: You must enter a number!\n\nWhat do you want your character's age to be?\n\nNote: The age must be no lower than 18 and no higher than 90.", "Done", "");
return 1;
}
new age = strval(inputtext);
if(age < 18 || age > 90)
{
ShowPlayerDialogEx(playerid, REGISTRATION_MENU_TWO, DIALOG_STYLE_INPUT, "{00FF00}Social Gaming Roleplay - Registration", "{FFFFFF}ENTRY DECLINED: The age can only be from 18 to 90!\n\nWhat do you want your character's age to be?\n\nNote: The age must be no lower than 18 and no higher than 90.", "Done", "");
return 1;
}
PlayerInfo[playerid][pAge] = age;
SetPlayerVirtualWorld(playerid, 0);
ShowPlayerDialogEx(playerid, REGISTRATION_MENU_THREE, DIALOG_STYLE_MSGBOX, "{00FF00}Social Gaming Roleplay - Registration", "{FFFFFF}Have you been referred here by one of our players?", "Yes", "No");
}
if(dialogid == FINDDEALERSHIPMENU)
{
if(response)
{
new
szMessage[128];
SetPlayerCheckpoint(playerid, CarDealershipInfo[listitem][cdEntranceX], CarDealershipInfo[listitem][cdEntranceY], CarDealershipInfo[listitem][cdEntranceZ], 3);
format(szMessage, sizeof(szMessage), "You have selected %s. Go to the red checkpoint on your radar/map.", CarDealershipInfo[listitem][cdMessage]);
SendClientMessage(playerid, COLOR_WHITE, szMessage);
FindingDealership[playerid] = 1;
}
}
if(dialogid == STOREMENU2)
{
if(response)
{
if(listitem == 0)
{
new price1 = BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0];
if(PlayerInfo[playerid][pFaction] == 0 && PlayerInfo[playerid][pLeader] == 0 && PlayerInfo[playerid][pDonator] == 2)
{
format(string, sizeof(string), "Please enter a Skin ID!\n\nNote: Skin Changes cost ($%d)", price1);
ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection",string, "Purchase", "Cancel");
}
else
{
ShowPlayerDialogEx(playerid, 3495, DIALOG_STYLE_INPUT, "Skin Selection","Please enter a Skin ID!\n\nNote: Your skin changes are free.", "Buy", "Cancel");
}
}
else if(listitem == 1)
{
ShowPlayerDialogEx(playerid, BUYTOYS, DIALOG_STYLE_MSGBOX, "Toy Store", "Welcome to the toy store! Here you can buy accessories to attach to your player.\n\nFirst, we will choose a slot to store the toy in.\n(Note: Non-Donators can only hold 5 toys, Pearl VIP-Diamond VIP can hold 6-8)","Continue", "Cancel");
}
else if(listitem == 2)
{
ShowPlayerDialogEx(playerid, BUYTOYSPLAT, DIALOG_STYLE_MSGBOX, "Toy Store", "Welcome to the Gun Toys store! Here you can buy accessories to attach to your character.\n\nFirst, we will choose a slot to store the toy in.","Continue", "Cancel");
}
}
}
if(dialogid == DIALOG_REFUND1)
{
if(response)
{
ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Social Gaming Roleplay - \ages","Refund Package 1\nRefund Package 2","Read", "");
}
}
if(dialogid == DIALOG_REFUND2)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialogEx(playerid, DIALOG_REFUND3, DIALOG_STYLE_MSGBOX,"Social Gaming Roleplay","-Level 3\n-500 Cash\nEmerald VIP\nPot 30","Okay","Return");
}
else if(listitem == 1)
{
ShowPlayerDialogEx(playerid, DIALOG_REFUND4, DIALOG_STYLE_MSGBOX,"Social Gaming Roleplay","-Level 3\n-3k Cash\nCrack 20","Okay","Return");
}
}
}
if(dialogid == DIALOG_REFUND3)
{
if(!response)
{
ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Social Gaming Roleplay - Refund Packages","Refund Package 1\nRefund Package 2","Read", "");
}
if(response)
{
PlayerInfo[playerid][pLevel] = 3;
PlayerInfo[playerid][pCash] = 500;
PlayerInfo[playerid][pBank] = 500; PlayerInfo[playerid][pPot] = 30;
PlayerInfo[playerid][pConnectTime] = 2;
PlayerInfo[playerid][pDonatorExpire] = gettime()+200000;
PlayerInfo[playerid][pDonator] = 2;
}
}
if(dialogid == DIALOG_REFUND4)
{
if(!response)
{
ShowPlayerDialogEx(playerid, DIALOG_REFUND2, DIALOG_STYLE_LIST,"Social Gaming Roleplay - Refund Packages","Refund Package 1\nRefund Package 2","Read", "");
}
if(response)
{
PlayerInfo[playerid][pLevel] = 3;
PlayerInfo[playerid][pCash] = 3000;
PlayerInfo[playerid][pBank] = 500; PlayerInfo[playerid][pCrack] = 20;
PlayerInfo[playerid][pConnectTime] = 2;
PlayerInfo[playerid][pDonatorExpire] = gettime()+0;
PlayerInfo[playerid][pDonator] = 0;
}
}
if(dialogid == 3207)
{
if(response)
{
new zone[MAX_ZONE_NAME];
new Float:x, Float:y, Float:z;
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
if(listitem == 0)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Repair");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 3207);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 1)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Refuel");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 3207);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 2)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Tow");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 3207);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
}
else
{
DeletePVar(playerid, "ChoosingFix");
return 0;
}
}
if(dialogid == DIALOG_NEONMENU)
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "neonmenu", 1); // Blue Neon
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_NEON1, DIALOG_STYLE_INPUT, "Donators Neon"," Select a vehicle you wish to install this on:", "Select", "");
}
}
if(listitem == 1)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "neonmenu", 2); // Green Neon
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_NEON2, DIALOG_STYLE_INPUT, "Donators Neon"," Select a vehicle you wish to install this on:", "Select", "");
}
}
if(listitem == 2)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "neonmenu", 3); // White Neon
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_NEON3, DIALOG_STYLE_INPUT, "Donators Neon"," Select a vehicle you wish to install this on:", "Select", "");
}
}
if(listitem == 3)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "neonmenu", 4); // Pink Neon
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_NEON4, DIALOG_STYLE_INPUT, "Donators Neon"," Select a vehicle you wish to install this on:", "Select", "");
}
}
if(listitem == 4)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "neonmenu", 5); // Yellow Neon
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_NEON5, DIALOG_STYLE_INPUT, "Donators Neon"," Select a vehicle you wish to install this on:", "Select", "");
}
}
if(listitem == 5)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "neonmenu", 6); // REd Neon
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_NEON5, DIALOG_STYLE_INPUT, "Donators Neon"," Select a vehicle you wish to install this on:", "Select", "");
}
}
}
}
if(dialogid == DIALOG_NEON1)
{
if(GetPVarInt(playerid, "neonmenu") == 1)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18648)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install a Blue Neon to this Vehicle !");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
PlayerVehicleInfo[playerid][pvid][pvNeon] = 18648;
SetPVarInt(playerid, "neonmenu", 0);
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == DIALOG_NEON2)
{
if(GetPVarInt(playerid, "neonmenu") == 2)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18649)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install a Green Neon !");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
PlayerVehicleInfo[playerid][pvid][pvNeon] = 18649;
SetPVarInt(playerid, "neonmenu", 0);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == DIALOG_NEON3)
{
if(GetPVarInt(playerid, "neonmenu") == 3)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18652)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install a White Neon!");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
PlayerVehicleInfo[playerid][pvid][pvNeon] = 18652;
SetPVarInt(playerid, "neonmenu", 0);
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == DIALOG_NEON4)
{
if(GetPVarInt(playerid, "neonmenu") == 4)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18651)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install a Pink Neon!");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
PlayerVehicleInfo[playerid][pvid][pvNeon] = 18651;
SetPVarInt(playerid, "neonmenu", 0);
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == DIALOG_NEON5)
{
if(GetPVarInt(playerid, "neonmenu") == 5)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18650)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install a Yellow Neon!");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
PlayerVehicleInfo[playerid][pvid][pvNeon] = 18650;
SetPVarInt(playerid, "neonmenu", 0);
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the Neon to their Vehicle", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == DIALOG_NEON6)
{
if(GetPVarInt(playerid, "neonmenu") == 6)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvNeon] == 18647)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "neonmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install a Red Neon!");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
PlayerVehicleInfo[playerid][pvid][pvNeon] = 18647;
SetPVarInt(playerid, "neonmenu", 0);
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the Electrict Shock Lock to their Vehicle", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == DIALOG_ELOCK)
{
if(!response)
{
new String[128];
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has canceled the Dialog of Electrict Lock", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
if(response)
{
if(listitem == 0)
{
if(GetPlayerVehicleCount(playerid) != 0)
{
SetPVarInt(playerid, "lockmenu", 4);
for(new i=0; i<MAX_PLAYERVEHICLES; i++)
{
if(PlayerVehicleInfo[playerid][i][pvId] != INVALID_PLAYER_VEHICLE_ID)
{
format(string, sizeof(string), "Vehicle %d | Name: %s.",i+1,GetVehicleName(PlayerVehicleInfo[playerid][i][pvId]));
SendClientMessageEx(playerid, COLOR_WHITE, string);
}
}
ShowPlayerDialogEx(playerid, DIALOG_ELOCK1, DIALOG_STYLE_INPUT, "Donators Electric Lock"," Select a vehicle you wish to install this on:", "Select", "");
}
else
{
SendClientMessageEx(playerid, COLOR_WHITE, "You don't have any cars - where we can install this item?");
return 1;
}
}
}
}
if(dialogid == DIALOG_ELOCK1)
{
if(GetPVarInt(playerid, "lockmenu") == 4)
{
new pvid;
if (IsNumeric(inputtext))
{
pvid = strval(inputtext)-1;
if(PlayerVehicleInfo[playerid][pvid][pvId] == INVALID_PLAYER_VEHICLE_ID)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You don't have a vehicle in this slot.");
SetPVarInt(playerid, "lockmenu", 0);
return 1;
}
if(PlayerVehicleInfo[playerid][pvid][pvLock] == 3)
{
SendClientMessageEx(playerid, COLOR_GRAD4, "ERROR: You already have this item installed on this vehicle.");
SetPVarInt(playerid, "lockmenu", 0);
return 1;
}
new String[128];
format(string, sizeof(string), " You have successfuly install an electric shock lock!");
SendClientMessageEx(playerid, COLOR_GRAD4, string);
SendClientMessageEx(playerid, COLOR_YELLOW, "HINT: You can now use /pvlock to lock your car.");
PlayerVehicleInfo[playerid][pvid][pvLock] = 3;
SetPVarInt(playerid, "lockmenu", 0);
format(String, sizeof(String), "{AA3333}AdmWarning{FFFF00}: %s (ID %d) has successfuly installed the Electrict Shock Lock to their Vehicle", GetPlayerNameEx(playerid), playerid);
ABroadCast(COLOR_YELLOW, String, 2);
}
}
}
if(dialogid == STOREMENU3)
{
if(response)
{
if(listitem == 0)
{
if (GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0])
{
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0]);
GivePlayerValidWeapon(playerid, 25, 25);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
format(string, sizeof(string), "870 Remington Purchase.");
SendClientMessageEx(playerid, COLOR_RED, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
if(listitem == 1)
{
if (GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice1])
{
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice1]);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice1]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
GivePlayerValidWeapon(playerid, 33, 20);
format(string, sizeof(string), "Winchester Model 1998 Purchase");
SendClientMessageEx(playerid, COLOR_RED, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
if(listitem == 2)
{
if (GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice2])
{
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice2]);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice2]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
GivePlayerValidWeapon(playerid, 22, 60);
format(string, sizeof(string), "Colt 45 Purchase");
SendClientMessageEx(playerid, COLOR_RED, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
if(listitem == 3)
{
if (GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice3])
{
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice3]);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice3]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
GivePlayerValidWeapon(playerid, 4, 60000);
format(string, sizeof(string), "KBAR Knife Purchase");
SendClientMessageEx(playerid, COLOR_RED, string);
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
}
}
if(dialogid == STOREMENU4)
{
new idx = GetPlayerVirtualWorld(playerid)-100;
new Float:health;
GetPlayerHealth(playerid,health);
if(response)
{
if(health < 100 )
{
if(listitem == 0)
{
if (GetPlayerCash(playerid) >= 150)
{
GivePlayerCash(playerid, -150);
BizInfo[idx][bMoney] += 150;
SetPlayerHealth(playerid,health+10);
// Hungry[playerid] -= 1;
// SetProgressBarValue(Hunger[playerid], GetProgressBarValue(Hunger[playerid])+10);
// UpdateProgressBar(Hunger[playerid], playerid);
// KillTimer(GetPVarInt(playerid, "hungry1"));
// SetPVarInt(playerid, "hungry", 0);
SendClientMessage(playerid, COLOR_WHITE, " You've purchase one of the menu, and now you filled you stomach");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You cannot afford $2500");
}
}
if(listitem == 1)
{
if (GetPlayerCash(playerid) >= 350)
{
GivePlayerCash(playerid, -350);
BizInfo[idx][bMoney] += 350;
SetPlayerHealth(playerid,health+15);
// Hungry[playerid] -= 1.5;
// SetProgressBarValue(Hunger[playerid], GetProgressBarValue(Hunger[playerid])+15);
// UpdateProgressBar(Hunger[playerid], playerid);
// KillTimer(GetPVarInt(playerid, "hungry1"));
// SetPVarInt(playerid, "hungry", 0);
SendClientMessage(playerid, COLOR_WHITE, " You've purchase one of the menu, and now you filled you stomach");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You cannot afford $5000");
}
}
if(listitem == 2)
{
if (GetPlayerCash(playerid) >= 500)
{
GivePlayerCash(playerid, -500);
BizInfo[idx][bMoney] += 500;
SetPlayerHealth(playerid,health+20);
// Hungry[playerid] -= 2;
// SetProgressBarValue(Hunger[playerid], GetProgressBarValue(Hunger[playerid])+20);
// UpdateProgressBar(Hunger[playerid], playerid);
// KillTimer(GetPVarInt(playerid, "hungry1"));
// SetPVarInt(playerid, "hungry", 0);
SendClientMessage(playerid, COLOR_WHITE, " You've purchase one of the menu, and now you filled you stomach");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You cannot afford $7000");
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You already stuff, you cannot longer eat");
}
}
}
if(dialogid == STOREMENU5)
{
if(response)
{
if(listitem == 0)
{
if(GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0])
{
if(PlayerInfo[playerid][pPhoneCredits] <= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0])
{
PlayerInfo[playerid][pPhoneCredits] += 50;
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0]);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice0]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " You already reach the max of Cellphone Load 100");
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
if(listitem == 1)
{
if(GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice1])
{
new randphone = 1000 + random(99999);//minimum 1000 max 99999
ReplacePH(PlayerInfo[playerid][pNumber], randphone);
PlayerInfo[playerid][pNumber] = randphone;
PlayerInfo[playerid][pInt] = GetPlayerInterior(playerid);
PlayerInfo[playerid][pVW] = GetPlayerVirtualWorld(playerid);
GetPlayerIp(playerid, PlayerInfo[playerid][pIP], 32);
GetPlayerPos(playerid, PlayerInfo[playerid][pPos_x], PlayerInfo[playerid][pPos_y], PlayerInfo[playerid][pPos_z]);
GetPlayerFacingAngle(playerid, PlayerInfo[playerid][pPos_r]);
OnPlayerStatsUpdate(playerid);
format(string, sizeof(string), "Cellphone purchased, your new phone number is %d.", randphone);
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_GRAD5, "You can check this any time you wish by typing /stats.");
SendClientMessage(playerid, COLOR_WHITE, "HINT: You can now type /cellphonehelp to see your cellphone commands.");
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice1]);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice1]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
}
else
{
SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
if(listitem == 2)
{
if(GetPlayerCash(playerid) >= BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice2])
{
PlayerInfo[playerid][pPhoneBook] = 1;
format(string, sizeof(string), "Phonebook purchased, you can now look up other player's numbers.");
SendClientMessage(playerid, COLOR_GRAD4, string);
SendClientMessage(playerid, COLOR_WHITE, "HINT: Type /number <id/name>.");
GivePlayerCash(playerid, -BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice2]);
BizInfo[PlayerInfo[playerid][InBusiness]][bMoney] += BizInfo[PlayerInfo[playerid][InBusiness]][bProductsPrice2]/2;
BizInfo[PlayerInfo[playerid][InBusiness]][bSupplies] --;
}
else
{
SendClientMessage(playerid, COLOR_GRAD4, "You don't have the cash for this item!");
}
}
}
}
pawn Код:
if(dialogid == 3207)
{
if(response)
{
new zone[MAX_ZONE_NAME];
new Float:x, Float:y, Float:z;
GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
if(listitem == 0)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Repair");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 1)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Refuel");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
else if(listitem == 2)
{
GetPlayerPos(playerid, x, y, z);
format(string, sizeof(string), "____________ RR DISPATCH PANEL _____________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "REQUESTING: {FFFFFF}Tow");
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "DESTINATION: {FFFFFF}%s", zone);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "PHONE NUMBER: {FFFFFF}%i", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "____________________________________________", PlayerInfo[playerid][pNumber]);
SendRadioMessage(14, COLOR_YELLOW, string);
format(string, sizeof(string), "To accept this service request; (type /arapid %d)", playerid);
SendRadioMessage(14, COLOR_WHITE, string);
/*foreach(Player, i)
{
if(PlayerInfo[i][pJob] == 30 || PlayerInfo[i][pJob2] == 30)
{
SendClientMessageEx(i, COLOR_YELLOW, string2);
SendClientMessageEx(i, COLOR_YELLOW, string3);
SendClientMessageEx(i, COLOR_YELLOW, string4);
SendClientMessageEx(i, COLOR_YELLOW, string5);
}
}*/
DeletePVar(playerid, "ChoosingFix");
SetPVarInt(playerid, "RRCaller", 1);
RRCall[playerid] = playerid;
PlayerInfo[playerid][pServiceTime] = 30;
SendClientMessageEx(playerid, COLOR_WHITE, "A rapid-recovery worker will be dispatched to your current location within a few minutes");
}
}
else
{
DeletePVar(playerid, "ChoosingFix");
return 0;
}
}