08.04.2013, 15:30
Quando eu buzino sendo da Familia o portгo nгo abre so abre com eu usando o /pf
Comandos:
[pawn]
Valeu ajudar dou +REP!
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 Код:
discon = CreateObject(980, 1496.1875, -699.90942382813, 96.523391723633, 0, 0, 180.54052734375, 300.0);