SA-MP Forums Archive
[Ajuda] Comando - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: [Ajuda] Comando (/showthread.php?tid=429187)



Comando - iStronG - 08.04.2013

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!


Re: Comando - DrTHE - 08.04.2013

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



Re: Comando - iStronG - 08.04.2013

valeu.