[AJUDA] Portхes
#1

Galera eu queria que vocкs colocassem pra quando apertar H abrir , olha os comandos:

pawn Код:
if(strcmp(cmd, "/ptriads", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
        {
            if(PlayerToPoint(15.0, playerid, 1621.5723876953, -1866.224609375, 13.3828125))
            {
            MoveObject( PTRIADS, 1621.476, -1865.316, 20.320,3,0.0,0.0,0.0);
            GameTextForPlayer(playerid, "~w~Portao Triads ~n~~b~Aberto", 5000, 3);
            SetTimer("fechartriads", 5000, false);
            }
        }
        return true;
    }
   
    if(strcmp(cmd, "/pballas", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)
        {
            if(PlayerToPoint(15.0, playerid, 1150.9680175781, -1213.5841064453, 18.491146087646))
            {
            MoveObject( PBALLAS, 1140.380, -1212.989, 20.372,3,0.0,0.0,180.0);
            GameTextForPlayer(playerid, "~w~Portao Ballas ~n~~b~Aberto", 5000, 3);
            SetTimer("fecharballas", 5000, false);
        }
            }
        return true;
    }

    if(strcmp(cmd, "/pgroove", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
        {
            if(PlayerToPoint(15.0, playerid, 321.39999389648, -1188.1999511719, 77.099998474121))
            {
            MoveObject( PGROOVE, 2463.294, -1669.978, 15.078,3,0.0,0.0,270.0);
            GameTextForPlayer(playerid, "~w~Portao Groove ~n~~b~Aberto", 5000, 3);
            SetTimer("fechargroove", 5000, false);
            }
        }
        return true;
    }

    if(strcmp(cmd, "/phitmans", true) == 0)
    {
        if (PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
        {
            if(PlayerToPoint(15.0, playerid, 956.42016601563,-1498.7211914063,13.544877052307))
            {
                MoveObject(PHITMANS, 956.456, -1499.972, 20.320,3,0.0,0.0,0.0);
                GameTextForPlayer(playerid, "~w~Portao Hitmans ~n~~b~Aberto", 5000, 3);
                SetTimer("fecharhitmans", 5000, false);
            }
            else if(PlayerToPoint(15.0, playerid, 1016.6881103516,-1542.4482421875,13.533554077148))
            {
                MoveObject( PHITMANS2, 785.128,-1162.442,25.430,3,0.0,0.0,88.522);
                GameTextForPlayer(playerid, "~w~Portao Hitmans ~n~~b~Aberto", 5000, 3);
                SetTimer("fecharhitmans2", 5000, false);
            }
        }
        return true;
    }
Reply
#2

Keys possнveis.
Reply
#3

lol vai durmi rs rs
Reply
#4

Dormir? essa hora, ainda й cedo .
Reply
#5

й nois
Reply
#6

Quote:
Originally Posted by sanalex
Посмотреть сообщение
Dormir? essa hora, ainda й cedo .
Verdade, 10 pras 5 da manhг, й cedo d+ dia ta sу comeзando

@topic

coloca isso:

pawn Код:
if(newkeys == 2) MoveObject(id,X,Y,Z,velocidade);//muda id,X,Y,Z,velocidade pelos dados dos teus portoes..
na public
OnPlayerKeyStateChange
Reply
#7

pawn Код:
if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
    {
        if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
        {
        if(strcmp(cmd, "/ptriads", true) == 0)
        }
        return true;
    }
aeew mano sou iniciante sabe? nгo testei nem nada... apenas fiz de cabeзa ^^ Espero ter ajudado, agora so vocк fazer a mesma coisa nos outros...
Reply
#8

pawn Код:
if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
    {
        if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
        {
            if(PlayerToPoint(15.0, playerid, 1621.5723876953, -1866.224609375, 13.3828125))
            {
            OnPlayerCommandText(playerid,"/ptriads");
            }
        }
        return true;
    }
   
   if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
    {
        if (PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)
        {
            if(PlayerToPoint(15.0, playerid, 1150.9680175781, -1213.5841064453, 18.491146087646))
            {
            OnPlayerCommandText(playerid,"/pballas");
        }
            }
        return true;
    }

   if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
    {
         if (PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)        
        {
            if(PlayerToPoint(15.0, playerid, 321.39999389648, -1188.1999511719, 77.099998474121))
            {
            OnPlayerCommandText(playerid,"/pgroove");
            }
        }
        return true;
    }

    if(strcmp(cmd, "/phitmans", true) == 0)
    {
        if((newkeys == 2) && (IsPlayerInAnyVehicle(playerid)))
        {
           if (PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
          {
            if(PlayerToPoint(15.0, playerid, 956.42016601563,-1498.7211914063,13.544877052307))
            {
                OnPlayerCommandText(playerid,"/phitmans");;
            }
            else if(PlayerToPoint(15.0, playerid, 1016.6881103516,-1542.4482421875,13.533554077148))      
           
        }
        return true;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)