Payday spamming.
#3

Create a forloop to check if the player is connected.

PHP код:
forward payday(playerid);
public 
payday(playerid)
{
 for(new 
0MAX_PLAYERSi++)
    {
    if(
IsPlayerConnected(i))// continue;
    
{
    
GivePlayerMoney(i1000);
    
SendClientMessage(iCOLOR_GREEN"_______ BANK OF LOS SANTOS _______ ");
    
SendClientMessage(iCOLOR_GREEN"BANK:{FFFFFF} You've received 500$ from the goverment.");
    
SendClientMessage(iCOLOR_GREEN"___________________________________");
    
GameTextForPlayer(i"~w~PAYDAY, USD 500."50004);
    
SetTimerEx("payday"560true"i"playerid);
    
printf("SERVER: Payday has been executed. :)");
    return 
1;

Try this..
Reply


Messages In This Thread
Payday spamming. - by canip0000 - 15.07.2016, 02:01
Re: Payday spamming. - by canip0000 - 15.07.2016, 02:04
Re: Payday spamming. - by WhiteGhost - 15.07.2016, 02:21
Re: Payday spamming. - by canip0000 - 15.07.2016, 02:36
Re: Payday spamming. - by WhiteGhost - 15.07.2016, 02:50
Re: Payday spamming. - by Jonesy96 - 15.07.2016, 09:03

Forum Jump:


Users browsing this thread: 1 Guest(s)