[AJUDA]Urgentemente
#9

e pq o menino posto o codigo incompleto vc precisa criar as PUBLIC que estгo dentro do site timer

@EDIT
PHP код:
forward CountDown();
new 
Count 5;
new 
CountText[5][5] =
{
"~r~1",
"~r~2",
"~r~3",
"~y~4",
"~g~5"
}; 
PHP код:
    if (strcmp(cmdtext"/contar"true)==0)
    {
        if(
IsPlayerConnected(playerid))
        {
               if(
PlayerInfo[playerid][pAdmin] >= 3000)
               {
                if(
Count != 5)
                {
                    
SendClientMessage(playeridCOLOR_DBLUE"**** Contador й iniciado!");
                    
CountDown();
                    return 
1;
                }
                else
                {
                    
SendClientMessage(playeridCOLOR_WARNING"**** Contador jб estб ativado!");
                    return 
1;
                }
            }
            else
            {
                  
SendClientMessage(playerid,COLOR_GRAD5,"Vocк nгo tem permissгo para usar esse comando!");
              }
        }
        return 
1;
    } 
PHP код:
public CountDown()
{
    if (
Count 0)
    {
        
GameTextForAllCountText[Count-1], 25005);
        
Count--;
        
SetTimer("CountDown"10000);
    }
    else
    {
        
GameTextForAll("~g~GO!"25005);
        
Count 5;
    }
    return 
1;

Virar o carro
@EDIT2
PHP код:
    if(strcmp(cmd"/x"true) == 0)
    {
        if(
IsPlayerConnected(playerid))
        {
            if (
PlayerInfo[playerid][pAdmin] >= 1000)
            {
                new 
Float:XFloat:YFloat:Z;
                if(
IsPlayerInAnyVehicle(playerid))
                {
                    
SetCameraBehindPlayer(playerid);
                    
GetPlayerPos(playeridXYZ);
                    
SetVehiclePos(GetPlayerVehicleID(playerid), XYZ);
                    
SetVehicleZAngle(GetPlayerVehicleID(playerid), 0);
                }
            }
            else
            {
                 
SendClientMessage(playeridCOLOR_WARNING"Vocк nгo tem permissгo para usar esse comando.");
            }
        }
        return 
1;
    } 
Reply


Messages In This Thread
[AJUDA]Urgentemente - by Oakley_TwOPaCk - 11.10.2011, 19:35
Re: [AJUDA]Urgentemente - by Nake01 - 11.10.2011, 19:42
Re: [AJUDA]Urgentemente - by Oakley_TwOPaCk - 11.10.2011, 19:45
Re: [AJUDA]Urgentemente - by ceesar90 - 11.10.2011, 19:56
Re: [AJUDA]Urgentemente - by Vai_Besta - 11.10.2011, 20:31
Re: [AJUDA]Urgentemente - by Oakley_TwOPaCk - 23.10.2011, 21:56
Re: [AJUDA]Urgentemente - by Laercio - 23.10.2011, 22:07
Re: [AJUDA]Urgentemente - by Oakley_TwOPaCk - 23.10.2011, 22:23
Re: [AJUDA]Urgentemente - by lucas_mdr1235 - 23.10.2011, 22:34

Forum Jump:


Users browsing this thread: 1 Guest(s)