20.12.2011, 09:20
pawn Code:
if(dialogid==012012) {
if(response) {
if(listitem==0) { // Deagle
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough Cash!");
GivePlayerWeapon(playerid,24,99999);
SendClientMessage(playerid, COLOR_PURPLE,"Desert Eagle purchased for $10000.");
}
if(listitem==1) { // MP5K
if(GetPlayerMoney(playerid) < 15000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough Cash!");
GivePlayerWeapon(playerid,29,99999);
SendClientMessage(playerid, COLOR_PURPLE,"MP5 purchased for $15000.");
}
if(listitem==2) { // AK47
if(GetPlayerMoney(playerid) < 30000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough Cash!");
GivePlayerWeapon(playerid,30,999999);
SendClientMessage(playerid, COLOR_PURPLE,"AK-47 purchased for $30000");
}
if(listitem==3) { // ARMOUR
if(GetPlayerMoney(playerid) < 5000) return SendClientMessage(playerid, 0xFFFFFF, "You don't have enough Cash!");
SetPlayerArmour(playerid,100.0);
SendClientMessage(playerid, COLOR_PURPLE,"Full Armour purchased for $5000.");
}
}
}