SA-MP Forums Archive
alittle problem - 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: alittle problem (/showthread.php?tid=368610)



alittle problem - Joe Vagos - 13.08.2012

nw i fix my bank time so when the player is in the place it gives the cilent message but it doesnt give the money so when the clock struck 3:00 it doesnt give the money ,, i thought that i must use toggle player clock but it doesnt work hope u could help me


PHP код:
            else
            {
                new 
hours;
                new 
minutes;
                
GetPlayerTime(ihoursminutes);
                  if(
hours == 03 && minutes == 00//Gives user money at 6:00, if they're in bank
                
{
                    
PlayerPlaySound(i10580.00.00.0);
                    
GivePlayerMoney(i7500);
                    
SendClientMessage(i0x12900BBF"||| 03:00 | BANK TIME: |||");
                    
SendClientMessage(i0xFFFF00AA"YOU RECEIVE +7.500 $");
                }
            }
        }
    }
    return 
1;




Re : alittle problem - Sandiel - 14.08.2012

Does it send the "3:00 BANK TIME" messages?
Also, how do you execute this? a timer, a function, OnPlayerUpdate for example? a command?


Re: alittle problem - Joe Vagos - 14.08.2012

guys i use stock IsPlayerInArea :

and its like that belhot

nothing in that in the code appear


Re: alittle problem - Joe Vagos - 15.08.2012

could u clearify plz