12.03.2015, 05:01
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
If anyone has any good idea's for me that would be awesome
/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; }