*** This title is not descriptive - ****** - 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: *** This title is not descriptive - ****** (
/showthread.php?tid=395454)
*** This title is not descriptive - ****** -
Shane_Kingston - 26.11.2012
Hey guys i don't know this script............ i know that u will help me ....
The problem is ======== I want to make the server take money from player when entering the club, which function/command i should use ?
Re: Please help me with this -
iTzZh - 26.11.2012
Well the command you should use is the /enter command. I assume you are learning to script though so I imagine you're using something along the lines of NGRP's script. If you are using that script, you would probably be best off setting a business variable for "entry price" or something like that.
My advice: It may be a little complicated. Start somewhere else rather than diving into a big script.
Re: Please help me with this -
GoldZoroGrab - 26.11.2012
Here You Go
but change the checkpointid if its not the same name of the club in ur script anyways.....
pawn Код:
if(checkpointid == Club)
{
if(GetPlayerMoney(playerid, >=1500)
{
GivePlayerMoney(playerid, -1500)
}
else SendClientMessage(playerid, 0xF60000AA, "You Don't Have Enough Money To Enter The Club.");
}
Re: Please help me with this -
Shane_Kingston - 26.11.2012
thanks