Spamming message!
#5

Quote:
Originally Posted by N0FeaR
Посмотреть сообщение
Try this

PHP код:
forward FourDragonRobbery();
public 
FourDragonRobbery()
{
    if(
IsPlayerConnected(i)) // checking if player connected
    
{
         
//ROBBERIES
           
if(ROBBING_FourDragon[i] > 1// Checking if robbery time is above 1
         
{
              
ROBBING_FourDragon[i] --; // Decreasing time
              
new time[20]; //adding time variable
            
format(time,sizeof(time),"%d",ROBBING_FourDragon[i]);
             
TextDrawSetString(Textdraw494time);
              
TextDrawShowForPlayer(iTextdraw492);
               
TextDrawShowForPlayer(iTextdraw493);
               
TextDrawShowForPlayer(iTextdraw494);
            
TextDrawShowForPlayer(iTextdraw495);
            
ApplyAnimation(i"ROB_BANK""CAT_Safe_Rob"4.1111111);
        }
          if(
ROBBING_FourDragon[i] == 1// IF the timer reached 1
        
{
             new 
string[150], pName[MAX_PLAYER_NAME];// getting player name
               
GetPlayerName(i,pName,MAX_PLAYER_NAME);
             
SetPlayerWantedLevel(iGetPlayerWantedLevel(i) + 5); //giving player 5 wanted level
              
SetPlayerColor(iCOLOR_ORANGE);
               new 
mrand =random(200000);
            
ROBBING_FourDragon[i] = 0// Complete the timer for next step!
            
TextDrawHideForPlayer(iTextdraw494);
            
format(string,sizeof(string),"[Four Dragon]: %s(%d) has robbed Four Dragon Casino and collect: $%d.",pName,i,mrand);
            
SendClientMessageToAll(COLOR_REDstring);
            
ROBBING_FourDragon[i] = 1// Complete the timer for next step!
               
SetPlayerRaceCheckpoint(i1750.7642,382.4462,23.1719,263.0588,0,02);
              
SetTimer("FourDragonFinal",300000,true);
            
TimeM 3;
             
TimeS 0;
              
Time SetTimer("UpdateTime"1000true);
               
TextDrawShowForPlayer(iTextdraw494);
           }
    }
    return 
1;

Its not worked....

Quote:
Originally Posted by Mugalito
Посмотреть сообщение
this code is messed up, is this timer starts from ongamemodeinit or from where?
Missed up? what do you mean? I've adding everything

guys just help me wtih the Message its spamming ...
Reply


Messages In This Thread
Spamming message! - by RedRex - 01.02.2018, 11:02
Re: Spamming message! - by Flamehaze7 - 01.02.2018, 11:12
Re: Spamming message! - by N0FeaR - 01.02.2018, 11:13
Re: Spamming message! - by Mugala - 01.02.2018, 11:14
Re: Spamming message! - by RedRex - 01.02.2018, 11:31
Re: Spamming message! - by GangstaSunny. - 01.02.2018, 11:36
Re: Spamming message! - by RedRex - 01.02.2018, 11:38
Re: Spamming message! - by Flamehaze7 - 01.02.2018, 11:54
Re: Spamming message! - by Mugala - 01.02.2018, 12:53
Re: Spamming message! - by RedRex - 01.02.2018, 18:24

Forum Jump:


Users browsing this thread: 3 Guest(s)