How to Make this Command - 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: How to Make this Command (
/showthread.php?tid=446957)
How to Make this Command -
San1 - 28.06.2013
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]
Re: How to Make this Command -
MusicMan - 28.06.2013
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;
}
Re: How to Make this Command -
San1 - 28.06.2013
I Have this but i wanna know how to make the actual command to set the bizz fee
Re: How to Make this Command -
SwisherSweet - 28.06.2013
Variables. Price Amount MAX_BIZZ we can't tell you unless we some some enum.
Re: How to Make this Command -
JJB562 - 28.06.2013
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;
}