SA-MP Forums Archive
Help In scripting a giftbox system - 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: Help In scripting a giftbox system (/showthread.php?tid=393405)



Help In scripting a giftbox system - Smxe - 18.11.2012

Hey guys, I just wanted to make something very basic for my script. And that was a giftbox system.
If anyone can help , I will give them rep + Donater status permantly when my server is up. ( Soon )

Admin Commands: /setbox , /destroybox [id]
Player Commands: /getgift

Reward Message:
Congrats! - You won a free [guns]
Congrats! - You recived $[money]
Congrats! - You got *amount* more [pot or crack]

So it just places the box down and shows the object.
Here are the rewards

GiveZaiatMoney(playerb, 100000);
GiveZaiatMoney(playerb, 1000000);
GiveZaiatMoney(playerb, 50000);
GiveZaiatWeapon(playerid, 27, 60000);
GiveZaiatWeapon(playerid, 24, 60000);
GiveZaiatWeapon(playerid, 31, 60000);
GiveZaiatWeapon(playerid, 34, 60000);
GiveZaiatWeapon(playerid, 29, 60000);
PlayerInfo[playerb][pWeed] = 100;
PlayerInfo[playerb][pCrack] = 100;


Thank you in advance to who ever can do this for me. Youd mean alot! <3


Re: Help In scripting a giftbox system - Sandiel - 18.11.2012

So people just go up to it and /getgift, and it randomaly gives them stuff?


Re: Help In scripting a giftbox system - Smxe - 18.11.2012

Yes, =D. if in range of the box.