+rep for any help!
#4

Quote:
Originally Posted by KillerDVX
Посмотреть сообщение
PHP код:
forward OnPlayerInBank(playerid);
public 
OnPlayerInBank(playerid)
{
    new 
hourminutes;
    
GetPlayerTime(playeridhourminutes);
    if(
inbank[playerid] == 1)
    {
          if(
hour == 13 && minutes == 00)
        {
                   foreach(new 
i:Player)
                    {
                    
SendClientMessage(iCOLOR_WHITE"The bank paid you 15 DCash!");
                    
GivePlayerMoney(i15);
                    }
        }
    }
    return 
1;

Thanks but didn't work!
----------------------------------------------------------------------
SoFahim
if(inbank[playerid] == 1) means that player entered the bank with /enter
look!
Код:
CMD:enter(playerid, params[])
{
	if(IsPlayerInRangeOfPoint(playerid, 2, 1414.1307,-1487.2390,20.4345))//bank
	{
		SetPlayerPos(playerid, 344.6933,178.1691,1014.1875);
		SetPlayerInterior(playerid, 3);
		inbank[playerid] = 1;
 	}
	return 1;
}
Reply


Messages In This Thread
+rep for any help! - by ironmen - 19.07.2015, 12:10
Re: +rep for any help! - by SoFahim - 19.07.2015, 12:16
Re : +rep for any help! - by KillerDVX - 19.07.2015, 12:17
Re: Re : +rep for any help! - by ironmen - 19.07.2015, 12:23
Re : +rep for any help! - by KillerDVX - 19.07.2015, 12:27
Re: +rep for any help! - by ironmen - 19.07.2015, 12:37
Re: +rep for any help! - by Krokett - 19.07.2015, 12:47
Re: +rep for any help! - by ironmen - 19.07.2015, 12:51
Re: +rep for any help! - by PrinceKumar - 19.07.2015, 12:53
Re: +rep for any help! - by Glenn332 - 19.07.2015, 12:53

Forum Jump:


Users browsing this thread: 3 Guest(s)