12.07.2015, 03:31
Try this out :
PHP код:
case DIALOG_JOB_CENTER:
{
if(response)
{
switch(listitem)
{
case 0:
{
if(Player[playerid][playerMoney] >= 2000)
{
new msg[1000];
takeMoney(playerid, 2000);
if(Player[playerid][english])
{
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Mechanic "CHAT_WHITE"- Repair and Remove EMP from player Vehicle to get XP and Money.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Rapist "CHAT_WHITE" - Rape players and give them HIV.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Terrorist "CHAT_WHITE"- Blow up the jail or bank to get XP.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Weapon Dealer "CHAT_WHITE"- Sell guns to player to get money and XP.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Weed Dealer "CHAT_WHITE"- Sell weeds to player to get money and XP.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Kidnapper "CHAT_WHITE"Kidnap players to get ransom and XP.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Hitman "CHAT_WHITE"- Kill and complete hit contract to get XP and money.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Trucker "CHAT_WHITE"- Complete truck mission to get XP and Money.", msg);
ShowPlayerDialog(playerid, DIALOG_JOB, DIALOG_STYLE_LIST, "Job Selection", msg, "Choose", "");
}
else
{
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Mechanic "CHAT_WHITE"- Perbaiki kendaraan orang lain untuk mendapatkan XP dan uang.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Rapist "CHAT_WHITE" - Perkosa player lain dan infeksi dia dengan HIV.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Terrorist "CHAT_WHITE"- Ledakkan penjara atau bank untuk mendapatkan XP.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Weapon Dealer "CHAT_WHITE"- Jual senjata ke player lain untuk mendpatkan XP dan uang.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Weed Dealer "CHAT_WHITE"- Jual ganja ke player lain untuk mendpatkan XP dan uang.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Kidnapper "CHAT_WHITE"Culik player lain dan minta tebusan.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Hitman "CHAT_WHITE"- Bunuh dan selesaikan kontrak untuk mendapatkan XP dan uang.\n", msg);
format(msg, sizeof(msg), "%s"CHAT_YELLOW"Trucker "CHAT_WHITE"- Selesaikan misi untuk mendapatkan XP dan uang.", msg);
ShowPlayerDialog(playerid, DIALOG_JOB, DIALOG_STYLE_LIST, "Pilih Pekerjaan", msg, "Pilih", "");
}
}
else
{
if(Player[playerid][english])
Server(playerid, "You cannot afford this.");
else
Server(playerid, "Uangmu tidak cukup.");
}
}
return 1;
}
return 1
}