SA-MP Forums Archive
please help me - 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: please help me (/showthread.php?tid=602004)



please help me - Rafaeloo - 29.02.2016

i have a borderpoint script , with a paguj command to pay the customs to open the gate
but when i pay the money , money back again to me
Can anynone help me ?
sorry for english
+rep if u help me



PHP код:
COMMAND:paguj(playerid,params[])
{
    if(
TollsLocked == 1) return SendClientMessage(playerid, COLOR_RED, "OPERATOR: Tolls have been locked upon command. Sorry about that!");
    {
                if(
IsPlayerInRangeOfPoint(playerid,10, 60.4100, -1540.4185, 5.0777))
            {
        if(
Flint1Status == 0)
                 {
                  new 
string[128];
                  
GivePlayerMoney(playerid, -2500);
                  
SetObjectRot( Flint1, 0, 0, -90 );
                  
SendClientMessage(playerid, COLOR_RED, "Toll Operator: Thank you for your payment! You may now proceed.");
                  
SendClientMessage(playerid, COLOR_WHITE, "(( Kufini Do Te Mybllet per 10 Sekonda! ))");
                  
SetTimer("closetollflint1", 10000, true);
                  
format(string, sizeof(string), "%s pagajti  250 dollar kufini.", RemoveUnderScore( playerid ));
                  
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
                  
Flint1Status = 1;
                 }
            } 



Re: please help me - Rafaeloo - 29.02.2016

anyone?


Re: please help me - saffierr - 29.02.2016

elaborate more, does it give the money back after removal or doesn't it even remove the cash?