How to Make this Command
#1

How can i make this Entrance Fee Command for Businesses, I already have all variables and everything set but now i need to know how to script a Entrance Fee command to set the business Fee, Im using ZCMD and SSCANF, can someone help or get me started? Examples of how i like the command , /setenfee [fee]
Reply
#2

It can be Like once you have #define ENFEE '1200'
you can use :
pawn Код:
if([pInfo][Money] => Defined Money) return SendClientMessage(playerid, -1,"You Need .... Money to Enter");
{
    /// Function;
}
Reply
#3

I Have this but i wanna know how to make the actual command to set the bizz fee
Reply
#4

Variables. Price Amount MAX_BIZZ we can't tell you unless we some some enum.
Reply
#5

It should be something like this:
pawn Код:
CMD:setentfee(playerid, params[])
{
     new bizid, fee;
     if(sscanf(params, "ii", bizid, fee)) return SendClientMessage(playerid, COLOR, "Usage: /setentfee [bizid] [fee]");
     BizInfo[bizid][EntFee] = fee;
     return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)