SA-MP Forums Archive
Moneybag [little help] - 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: Moneybag [little help] (/showthread.php?tid=410408)



Moneybag [little help] - Er@x3r - 25.01.2013

Hi i need help if i write /moneybag [amout]
put money in that the min amout is 50k$



#include <a_samp>
#define FILTERSCRIPT
#if defined FILTERSCRIPT
#define COLOR_LIGHTBLUE 0x33CCFFAA

new p1;

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/moneybag", cmdtext, true, 10) == 0)
{
p1 = CreatePickup(1550, 8, 1503.3359, 1432.3585, 10.1191, -1);
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreatePickup(1550, 2, X + 2, Y, Z);

SendClientMessage(playerid,COLOR_LIGHTBLUE,"You picked up the moneybag!");
return 1;
}
return 0;
}
#endif


Re: Moneybag [little help] - Roach_ - 25.01.2013

Why are you not using ZCMD ?


Re: Moneybag [little help] - Er@x3r - 02.02.2013

ok i will make with this