[Ajuda] /voar ou /fly
#1

Quero um comando de /voar ou /fly para admin...
(SV DE MATA MATA )
Reply
#2

Quote:
Originally Posted by helpmesamp
Посмотреть сообщение
Quero um comando de /voar ou /fly para admin...
(SV DE MATA MATA )
Manda teu skype posso te ajudar
Reply
#3

manda aq manim so o comando pra tu voar
Reply
#4

https://sampforum.blast.hk/showthread.php?tid=309467

й uma include!
Reply
#5

Quote:
Originally Posted by helpmesamp
Посмотреть сообщение
Quero um comando de /voar ou /fly para admin...
(SV DE MATA MATA )
Tenho um de um GM de RPG espero que te ajude!

PHP код:
CMD:fly(playerid, params[])
{
    if (
PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pAdminTemp] >= 1)
    {
        if(
PlayerInfo[playerid][pJailed] != 0)
        {
            
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode usar esse comando na cadeia!");
            return 
true;
        }
        if(
admtrampando[playerid] == 0)
        {
            return 
SendClientMessage(playerid,COLOR_GRAD2," Vocк nгo usar este comando em modo jogo!");
        }
        if((
flying[playerid] = !flying[playerid]))
        {
            new 
Float:x, Float:y, Float:z;
            
GetPlayerPos(playerid, x, y, z);
            
SetTimerEx("IronMan", 100, 0, "d", playerid);
            
SetTimerEx("DestroyMe", 500, 0, "d", CreateObject(2780, x, y, z - 3.0, 0.0, 0.0, 0.0));
            
SendClientMessage(playerid, COLOR_GRAD1, "Para sair do modo de voo digite /fly novamente.");
        }
        else
        {
            
SendClientMessage(playerid, COLOR_GRAD1, "Vocк saiu do modo de voo.");
        }
    }
    return 
1;
} 
PHP код:
BPF::IronMan(playerid)
{
    if(!
IsPlayerConnected(playerid))
        return 
flying[playerid] = false;
    if(
flying[playerid])
    {
        if(!
IsPlayerInAnyVehicle(playerid))
        {
            new
                
keys,
                
ud,
                
lr,
                
Float:x[2],
                
Float:y[2],
                
Float:z,
                
Float:a;
            
GetPlayerKeys(playerid, keys, ud, lr);
            
GetPlayerVelocity(playerid, x[0], y[0], z);
            if(!
GetPlayerWeapon(playerid))
            {
                if((
keys & KEY_FIRE) == (KEY_FIRE))
                {
                    
ForPlayers(i)
                    {
                        if(
i != playerid)
                        {
                            
GetPlayerPos(i, x[0], y[0], z);
                            if(
IsPlayerInRangeOfPoint(playerid, 3.0, x[0], y[0], z))
                                if(
IsPlayerFacingPlayer(playerid, i, 15.0))
                                    
SetPlayerVelocity(i, floatsin(-a, degrees), floatcos(-a, degrees), 0.05);
                        }
                    }
                }
                if((
keys & 136) == (136))
                    
Jav(playerid);
               }
            if(
ud == KEY_UP)
            {
                
GetPlayerCameraPos(playerid, x[0], y[0], z);
                
GetPlayerCameraFrontVector(playerid, x[1], y[1], z);
                
a = SetPlayerToFacePos(playerid, x[0] + x[1], y[0] + y[1]);
                
ApplyAnimation(playerid, "PARACHUTE", "FALL_SkyDive_Accel", 4.1, 0, 0, 0, 0, 0);
                
SetPlayerVelocity(playerid, x[1], y[1], z);
                
/*ForPlayers(i)
                {
                    if(i != playerid)
                    {
                        GetPlayerPos(i, x[0], y[0], z);
                        if(IsPlayerInRangeOfPoint(playerid, 10.0, x[0], y[0], z))
                            if(IsPlayerInAnyVehicle(i))
                            {
                                //SetVehicleHealth(GetPlayerVehicleID(i), 0.0);
                                //CreateExplosion(x[0], y[0], z, 7, 5.0);
                             }
                       }
                }*/
            
}
            else
                
SetPlayerVelocity(playerid, 0.0, 0.0, 0.01);
        }
        
SetTimerEx("IronMan", 100, 0, "d", playerid);
    }
    return 
0;
} 
PHP код:
BPF::DestroyMe(objectid)
{
    return 
DestroyObject(objectid);
} 
Obs: substitua as variaveis pelas de seu GM.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)