[Ajuda] Codigo desconhecido do gm
#3

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
if(
strcmp(cmdtext"/ComecarPaintball"true) == 0)
    {
    
PreparePaintball();
    return 
1;
}
    return 
0;
}
    
public 
PreparePaintball()
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
PlayerPaintballing[i] != 0)
            {
                
SetPlayerVirtualWorld(i,0);
                
SetPlayerInterior(i,10);
                
SendClientMessage(iCOLOR_YELLOW"O Paintball vai comeзar em 20 segundos.");
            }
        }
    }
     
SetTimer("StartPaintball"200000);
    return 
1;
}
public 
StartPaintball()
{
    
PaintballRornd 1;
    
StartingPaintballRornd 0;
    
PaintballWinner 999;
    
PaintballWinnerKills 0;
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
PlayerPaintballing[i] != 0)
            {
                
ResetPlayerWeaponsEx(i);
                
GivePlayerWeapon(i29999);
                
GivePlayerWeapon(i25999);
                
GivePlayerWeapon(i31999);
                
SetPlayerArmour(i100.0);
                
SetPlayerHealth(i100.0);
                
SetPlayerInterior(i,10);
                
TogglePlayerControllable(i1);
                
SendClientMessage(iCOLOR_YELLOW"O Paintball comeзou, 5 minutos para acabar.");
                
PlayerPlaySound(i10570.00.00.0);
            }
        }
    }
    
SetTimer("PaintballEnded"3000000);
    return 
1;
}
public 
SendVIPMessage(colorstring[])
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
PlayerInfo[i][pVIP] >= 1)
            {
                
SendClientMessage(icolorstring);
            }
        }
    }
}
public 
PaintballEnded()
{
    for(new 
0MAX_PLAYERSi++)
    {
        if(
IsPlayerConnected(i))
        {
            if(
PlayerPaintballing[i] != 0)
            {
                if(
IsPlayerConnected(PaintballWinner))
                {
                    
format(gstring,sizeof(gstring), "** %s ganhou o PaintBall, Matou: %d",PlayerName(PaintballWinner),PaintballWinnerKills);
                    
SendClientMessage(iCOLOR_LIGHTBLUEgstring);
                    
PaintballRornd 0;
                }
                
ResetPlayerWeaponsEx(i);
                
SetPlayerInterior(i,0);
                
PlayerPaintballing[i] = 0;
                
SetPlayerPos(iSBizzInfo[10][sbEntranceX],SBizzInfo[10][sbEntranceY],SBizzInfo[10][sbEntranceZ]);
            }
        }
    }
    
AnnorncedPaintballRornd 0;
    
PaintballRornd 0;
    return 
1;

Reply


Messages In This Thread
Codigo desconhecido do gm - by gabrielloko157 - 30.11.2012, 01:20
Re: Codigo desconhecido do gm - by Nill.Oliveira - 30.11.2012, 01:56
Re: Codigo desconhecido do gm - by Gleisson_. - 30.11.2012, 02:27
Re: Codigo desconhecido do gm - by mau.tito - 30.11.2012, 07:31

Forum Jump:


Users browsing this thread: 1 Guest(s)