problem with pickup rep+ - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: problem with pickup rep+ (
/showthread.php?tid=579636)
problem with pickup rep+ -
Mijata - 28.06.2015
Re: problem with pickup rep+ -
lanix - 28.06.2015
Is dialog show
Re: problem with pickup rep+ -
Mijata - 28.06.2015
Re: problem with pickup rep+ -
MohammedZ - 28.06.2015
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == CP1)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 10000$", "Select", "Cancel");
}
else if(pickupid == TP)
{
ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 10000$", "Select", "Cancel");
}
else if(pickupid == TP1)
{ShowPlayerDialog(playerid, 2, DIALOG_STYLE_LIST, "Briefcase", "Health - 5000$\nArmour - 10000$", "Select", "Cancel");
}
else if(pickupid == health)
{
if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,COLOR_RED,"You don't have enough money to buy this!");
SetPlayerHealth(playerid,100);
GivePlayerMoney(playerid,-10000);
SendClientMessage(playerid,808080,"You're successfully healed for 10000$");
}
Re: problem with pickup rep+ -
Mijata - 28.06.2015
edit
fixed thanks rep+