[Ajuda] Arma Nas Costas Bugado
#1

Eu estou usando uma GM Baixada a Brasil New Play.
E estou aqui para pedir ajuda que as armas nas costas dos Personagens fica so Piscando(ficando inisivel e voltando...)
e so fica assim piscando se alguem sabe como desbugar me ajuda ae.
Reply
#2

Manda o codigo
Reply
#3

EM COMANDO .

//TOPO GM
#define SetPlayerHoldingObject(%1,%2,%3,%4,%5,%6,%7,%8,%9) SetPlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_OBJ ECTS-1,%2,%3,%4,%5,%6,%7,%8,%9)
#define StopPlayerHoldingObject(%1) RemovePlayerAttachedObject(%1,MAX_PLAYER_ATTACHED_ OBJECTS-1)

forward AttachWeaponCorrectly(playerid, gun);

//================================================== ==
//FINAL GM
CMD:armac(playerid)
{
new gun = GetPlayerWeapon(playerid);
if(gun == 0 || gun == 1 || gun == 6 || gun == 9 || gun == 14 || gun == 36 || gun == 37 || gun == 38 || gun == 39 || gun == 43 || gun == 46 || gun == 40) return SendClientMessage(playerid, -1,"Vocк nгo pode colocar esta arma na cintura!");
else AttachWeaponCorrectly(playerid, gun);
return 1;
}
CMD:tirararmac(playerid) return AttachWeaponCorrectly(playerid, 99);

//================================================== ==
//FINAL DA GM
public AttachWeaponCorrectly(playerid, gun)
{
if(gun == 2){ SetPlayerHoldingObject(playerid, 333,1,0.3,-0.1,0.1,0.0,230.0,0.0); }
else if(gun == 3){ SetPlayerHoldingObject(playerid, 334,7,0.0,-0.0,-0.0,0.0,90.0,0.0);}
else if(gun == 4){ SetPlayerHoldingObject(playerid, 335,7,0.0,-0.1,-0.1,0.0,90.0,90.0);}
else if(gun == 5){ SetPlayerHoldingObject(playerid, 336,1,0.3,-0.1,0.1,0.0,230.0,0.0); }
else if(gun == 7){ SetPlayerHoldingObject(playerid, 338,1,0.3,-0.1,0.1,0.0,230.0,0.0); }
else if(gun == { SetPlayerHoldingObject(playerid, 339,1,0.3,-0.1,0.1,0.0,230.0,0.0);}
else if(gun == 10){ SetPlayerHoldingObject(playerid, 321,7,0.3,-0.0,-0.2,0.0,280.0,0.0); }
else if(gun == 11){ SetPlayerHoldingObject(playerid, 322,7,0.2,-0.0,-0.0,0.0,90.0,0.0);}
else if(gun == 12){ SetPlayerHoldingObject(playerid, 323,7,0.3,-0.0,-0.2,0.0,280.0,0.0); }
else if(gun == 13){ SetPlayerHoldingObject(playerid, 324,7,0.2,-0.0,-0.0,0.0,90.0,0.0);}
else if(gun == 15){ SetPlayerHoldingObject(playerid, 326,1,0.3,-0.1,0.1,0.0,230.0,0.0);}
else if(gun == 16){ SetPlayerHoldingObject(playerid, 342,7,0.0,0.0,-0.1,0.0,270.0,0.0); }
else if(gun == 17){ SetPlayerHoldingObject(playerid, 343,7,0.0,0.0,-0.1,0.0,270.0,0.0); }
else if(gun == 1{ SetPlayerHoldingObject(playerid, 344,7,0.0,0.0,-0.1,0.0,270.0,0.0);}
else if(gun == 22){ SetPlayerHoldingObject(playerid, 346,8,-0.1,0.0,0.1,270.0,0.0,0.0);}
else if(gun == 23){ SetPlayerHoldingObject(playerid, 347,8,-0.1,0.0,0.1,270.0,0.0,0.0);}
else if(gun == 24){ SetPlayerHoldingObject(playerid, 348,8,-0.1,0.0,0.1,270.0,0.0,0.0);}
else if(gun == 25){ SetPlayerHoldingObject(playerid, 349,1,0.2,-0.1,0.2,180.0,40.0,180.0);}
else if(gun == 26){ SetPlayerHoldingObject(playerid, 350,8,-0.1,0.0,0.1,270.0,0.0,0.0);}
else if(gun == 27){ SetPlayerHoldingObject(playerid, 351,1,0.2,-0.1,0.3,180.0,40.0,186.0);}
else if(gun == 2{ SetPlayerHoldingObject(playerid, 372,8,0.1,0.0,0.1,270.0,270.0,0.0);}
else if(gun == 29){ SetPlayerHoldingObject(playerid, 353,8,0.1,-0.1,0.1,270.0,0.0,0.0);}
else if(gun == 30){ SetPlayerHoldingObject(playerid, 355,1,0.2,-0.1,0.2,180.0,40.0,180.0);}
else if(gun == 31){ SetPlayerHoldingObject(playerid, 356,1,0.2,-0.1,0.2,180.0,40.0,180.0);}
else if(gun == 32){ SetPlayerHoldingObject(playerid, 372,8,0.1,0.0,0.1,270.0,270.0,0.0);}
else if(gun == 33){ SetPlayerHoldingObject(playerid, 357,1,0.2,-0.1,0.2,180.0,40.0,180.0);}
else if(gun == 34){ SetPlayerHoldingObject(playerid, 358,1,0.2,-0.1,0.2,180.0,40.0,180.0);}
else if(gun == 35){ SetPlayerHoldingObject(playerid, 359,1,0.1,-0.2,-0.2,0.0,50.0,0.0);}
else if(gun == 42){ SetPlayerHoldingObject(playerid, 366,1,0.4,-0.2,0.1,180.0,50.0,180.0);}
else if(gun == 41){ SetPlayerHoldingObject(playerid, 365,7,0.0,0.0,-0.1,0.0,270.0,0.0);}
else if(gun == 99){ StopPlayerHoldingObject(playerid);}
else return SendClientMessage(playerid, -1,"[INFO] Arma Invalida, procure um Administrador!");
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)