[Ajuda] 2 favores !!!
#6

PHP код:
new Tick;
forward Tres(playerid);
forward Dois(playerid);
forward Um(playerid);
forward Congelar(playerid);
public 
OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmdtext"/contar"true) == 0)
    {
        if(
GetTickCount() - Tick 5000) return SendClientMessage(playerid, -1"Aguarde 5 segundo para usar este comando !");
        if(
IsPlayerAdmin(playerid))
        {
            for(new 
0MAX_PLAYERS++)
            {
                new 
Float:Pos[3];
                
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
                if(
IsPlayerInRangeOfPoint(i12.0Pos[0], Pos[1], Pos[2]);
                {
                    
Tres(i);
                    
SetTimerEx("Congelar"4000false"i"i);
                    
Tick GetTickCount();
                    return 
1;
                }
            }
        }
        else return 
SendClientMessage(playerid, -1"Vocк nгo estб logado na RCON.");
    }
    return 
0;
}
public 
Tres(playerid)
{
    
SetTimerEx("Dois"1000false"i"playerid);
    
GameTextForPlayer(playerid"~r~3"10000);
    return 
1;
}
public 
Dois(playerid)
{
    
SetTimerEx("Um"1000false"i"playerid);
    
GameTextForPlayer(playerid"~b~2"10000);
    return 
1;
}
public 
Um(playerid)
{
    
GameTextForPlayer(playerid"~g~1"10000);
    return 
1;
}
public 
Congelar(playerid)
{
    
TooglePlayerControllable(playerid0);
    
GameTextForPlayer(playerid"~y~CONGELADO !"10000);
    return 
1;

Reply


Messages In This Thread
[Ajuda] 2 favores !!! - by ApolloRJ - 12.06.2011, 05:31
Re: [Ajuda] 2 favores !!! - by [BGL]jonas_OwNer - 12.06.2011, 05:39
Re: [Ajuda] 2 favores !!! - by ApolloRJ - 12.06.2011, 05:44
Re: [Ajuda] 2 favores !!! - by [BGL]jonas_OwNer - 12.06.2011, 05:49
Re: [Ajuda] 2 favores !!! - by ApolloRJ - 12.06.2011, 06:38
Re: [Ajuda] 2 favores !!! - by Shadoww5 - 12.06.2011, 11:43
Re: [Ajuda] 2 favores !!! - by The Knight - 12.06.2011, 12:06
Re: [Ajuda] 2 favores !!! - by Shadoww5 - 12.06.2011, 13:29
Re: [Ajuda] 2 favores !!! - by [S]trong - 12.06.2011, 14:33
Re: [Ajuda] 2 favores !!! - by ApolloRJ - 12.06.2011, 18:39

Forum Jump:


Users browsing this thread: 2 Guest(s)