Spam help!
#1

it spams the chat..

PHP код:
        {
                    new 
string[64];
                    new 
tmphour;
                    new 
tmpminute;
                    new 
tmpsecond;
                    
gettime(tmphourtmpminutetmpsecond);
                    if ((
tmphour ghour) || (tmphour == && ghour == 23))
                    {
                    
format(stringsizeof(string), "Este ora Fix Ceasul acuma este: %d:00 Succes incontinuare!",tmphour);
                    
BroadCast(COLOR_WHITE,string);
                    
ghour tmphour;
                    
PayDay();
                    if (
realtime)
                    {
                    
SetWorldTime(tmphour);
                    }
                    for(new 
i=0i<MAX_PLAYERSi++)
                    {
                        
SendClientMessageiCOLOR_YELLOW"• In 20 secunde toate masinile se vor respawna ! •"); // this spams chat!!
                    
}
                    
SetTimer("ScheduledRespawn",20000,false);
                    }
                    } 
PHP код:
public ScheduledRespawn(playerid)
                    {
                    new 
bool:unwanted[CAR_AMOUNT];
                    for(new 
0MAX_PLAYERSi++)
                    {
                    for(new 
player=0player<MAX_PLAYERSplayer++)
                    {
                    if(
IsPlayerInAnyVehicle(player)) { unwanted[GetPlayerVehicleID(player)]=true; }
                    }
                    for(new 
car 1car <= 359car++)
                    {
                        if(!
unwanted[car]) SetVehicleToRespawn(car);
                    }
                    
SendClientMessage(playerid,COLOR_YELLOW,"• Toate masinile au fost respawnate ! •");
                    }
                    } 
Reply


Messages In This Thread
Spam help! - by Akcent_Voltaj - 26.11.2012, 13:55
Re: Spam help! - by Akcent_Voltaj - 26.11.2012, 14:26
Re: Spam help! - by teomakedonija - 26.11.2012, 15:00
Re: Spam help! - by Akcent_Voltaj - 30.11.2012, 12:24
Re: Spam help! - by [D]ry[D]esert - 30.11.2012, 12:26
Re: Spam help! - by Hugoca - 30.11.2012, 12:29

Forum Jump:


Users browsing this thread: 3 Guest(s)