Spam Message Problem
#1

players "SOMETIMES'' when they enter my server the get spammed keep spamming them..please help!

PHP код:
public Refilling(playeridvehicleidenginelightsalarmdoorsbonnetbootobjective)
                    {
                        if(!
IsPlayerInAnyVehicle(playerid))
                        {
                            
IsRefilling[playerid] = false;
                            
KillTimer(RefillingTimer[playerid]);
                        }
                        if(
VehicleFuel[vehicleid] == 1000//
                        
{
                            
SendClientMessage(playerid,COLOR_RED,"Ai facut plinul de 150Lei, Poti pleca!");
                            
IsRefilling[playerid] = false;
                            
IsRanOutOfFuel[vehicleid] = false;
                            
KillTimer(RefillingTimer[playerid]);
                            return 
1;
                        }
                        
IsRanOutOfFuel[vehicleid] = false;
                        
IsRefilling[playerid] = false;
                        new 
TD_String[25];
                        
VehicleFuel[vehicleid]+=1;//cause i multiple 100 to 1000 there is comming a 0 extra
                        
new SecondFuel VehicleFuel[vehicleid] % 10,
                        
FirstFuel = (VehicleFuel[vehicleid] - SecondFuel) / 10;
                        
format(TD_String25"%i.%i"FirstFuel,SecondFuel);//i have 99.8 i go
                        
TextDrawSetString(Text:Values[playerid][2], TD_String);//playerid?yea
                          
return 1;
                    } 
PHP код:
Spam Message:
SendClientMessage(playerid,COLOR_RED,"Ai facut plinul de 150Lei, Poti pleca!");//translation "You filled your vehicle it costed 150$.you can go" 
Reply
#2

please help1
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)