Drug selling/buying - 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: Drug selling/buying (
/showthread.php?tid=567230)
Drug selling/buying -
NinjahZ - 12.03.2015
Hey, I need some assistance on creating a zcmd command for
/sellmarijuana
/sellcocaine
/buymarijuana
/buycocaine
they need to be from other players only, not just from the server, therefore it needs to deduct it from another player.
here is the base so far for the CMD sellmarijuana
Code:
CMD:sellmarijuana(playerid, params[])
{
if(PlayerInfo[playerid][pMarijuana] < 1)
{
SendClientMessage(playerid, -1, "ERROR: You do not have enough Marijuana to sell to anyone.");
}
else if(PlayerInfo[playerid][pMarijuana] > 0)
{
}
return 1;
}
If anyone has any good idea's for me that would be awesome