[Ajuda] Comando
#1

Quando eu buzino sendo da Familia o portгo nгo abre so abre com eu usando o /pf
Comandos:

pawn Код:
forward pdiscon();
new discon;
pawn Код:
if(strcmp(cmd, "/pf", true) == 0)
    {
        if(PlayerInfo[playerid][pFamilia] == 1 || PlayerInfo[playerid][pLFamilia] == 1)
        {
            if(PlayerToPoint(15.0, playerid,1496.7689,-699.4988,94.7500))
            {
                MoveObject(discon,1510.1875, -699.90942382813,96.523391723633,3);
                SetTimer("pdiscon", 6000, false);
                SendClientMessage(playerid,Verde, "Portгo aberto!");
            }
        }
        return 1;
    }
pawn Код:
public pdiscon()
{
    MoveObject(discon, 1496.1875, -699.90942382813, 96.523391723633, 3);
}
[pawn]

pawn Код:
discon = CreateObject(980, 1496.1875, -699.90942382813, 96.523391723633, 0, 0, 180.54052734375, 300.0);
Valeu ajudar dou +REP!
Reply
#2

Adicione onde detecta a tecla de "buzinar":
pawn Код:
OnPlayerCommandText(playerid, "/pf");
Reply
#3

valeu.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)