[PEDIDO] Arma de 2 Mгos em 1 Mгo - 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: [PEDIDO] Arma de 2 Mгos em 1 Mгo (
/showthread.php?tid=330568)
[PEDIDO] Arma de 2 Mгos em 1 Mгo -
Th4 L&noN! - 01.04.2012
Como Colocar Armas de 2 Mгos em 1 Mгo??
EX:
http://www.netupload.org/files/boenv3fp2wbnn0k4bdey.png
http://www.netupload.org/files/1rd43yk5ts0y5wugg670.png
DUVIDA ADD: Como Colocar Armas nas Costas?
Vlww..
OBS: Ja Usei o Search e nгo achei
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
Lуs - 01.04.2012
AttachObject
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
Th4 L&noN! - 05.04.2012
UP! Alguen ?
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
Lуs - 05.04.2012
Quote:
Originally Posted by Los
AttachObject
|
....
@edit
Agora que entendi!
https://sampforum.blast.hk/showthread.php?tid=205666
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
Th4 L&noN! - 06.04.2012
vlw por esse, so que o que eu mais requesito e nao achei й segurar
armas de 2 maos ex: m4, 12, sniper em 1 mгo sу
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
Lуs - 06.04.2012
Entгo, й AttachObject.
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
GReeN_WOoD - 06.04.2012
Para colocar armas nas costas:
PHP код:
#define SlotAKM4 1
if(!IsPlayerInAnyVehicle(playerid))
{
new Arma[MAX_PLAYERS],Bala[MAX_PLAYERS];
GetPlayerWeaponData(playerid, 5, Arma[playerid], Bala[playerid]);
if(Arma[playerid] == 30 && Bala[playerid] >= 1)//Ak-47
{
if(GetPlayerWeapon(playerid) == 30) RemovePlayerAttachedObject(playerid,SlotAKM4);
else SetPlayerAttachedObject(playerid, SlotAKM4, 355, 1, -0.060921, -0.141673, 0.000000, 0.000000, 35.362735, 0.000000);
}
else if(Arma[playerid] == 31 && Bala[playerid] >= 1) //M4
{
if(GetPlayerWeapon(playerid) == 31) RemovePlayerAttachedObject(playerid,SlotAKM4);
else SetPlayerAttachedObject(playerid, SlotAKM4, 356, 1, -0.099681, -0.133408, 0.000000, 1.027592, 19.667785, 0.000000);
}
else
{
RemovePlayerAttachedObject(playerid,SlotAKM4);
}
GetPlayerWeaponData(playerid, 3, Arma[playerid], Bala[playerid]);
}
Re: [PEDIDO] Arma de 2 Mгos em 1 Mгo -
Ricop522 - 06.04.2012
Use SetPlayerWeaponSkill para colocar armas de 2 mгos em uma mгo.
E use AttachObject para colocar as armas nas costas, pesquise no fуrum que existe!