[Ajuda] Por que nгo ta colocando a mascara no rosto?
#1

Sabem o pq? Sabem outra mascara pra aparecer no rosto?
Код:
CMD:mask(playerid) {
	if(Mask[playerid] == 0) return SendClientMessage(playerid, -1, "Vocк nгo tem uma mascara, compre na 24-7!");
    if(Mask[playerid] == 1) {
		GameTextForPlayer(playerid, "~w~MASK: ON!", 2000, 3);
		ApplyAnimation(playerid, "FIGHT_B", "FightB_block", 4.1, 0, 1, 1, 1, 1, 1);
		SetTimerEx("StopAnim", 400, false, "i", playerid);
		SetPlayerAttachedObject(playerid, 0, 19036, 2, 0.091755, 0.030188, 0.001176, 94.722915, 90.211921, 0.000000, 1.000000, 1.000000, 1.000000); // HockeyMask1 - Mask
		Mask[playerid] = 2;
	}
	else if(Mask[playerid] == 2) {
		GameTextForPlayer(playerid, "~w~MASK: OFF!", 2000, 3);
		ApplyAnimation(playerid, "FIGHT_B", "FightB_block", 4.1, 0, 1, 1, 1, 1, 1);
		SetTimerEx("StopAnim", 400, false, "i", playerid);
		if(IsPlayerAttachedObjectSlotUsed(playerid, 0)) RemovePlayerAttachedObject(playerid, 0);
		Mask[playerid] = 1;
	}
	return 1;
}
Reply
#2

Nгo tem nada de errado no seu cуdigos, o problema pode ser no id do Attached.

obs: Eu testei.

Tenta assim,
pawn Код:
SetPlayerAttachedObject(playerid, 12, 19036, 2, 0.091755, 0.030188, 0.001176, 94.722915, 90.211921, 0.000000, 1.000000, 1.000000, 1.000000);
Reply
#3

Procure usar BOOL nesses casos, afinal, vc usa apenas TRUE e FALSE, vc estб usando 1 e 2, bool й mais rapido...

Quote:

new bool:Mask[MAX_PLAYERS];

if(Mask[playerid] == true)

if(Mask[playerid] == false)

Reply
#4

Se o cуdigo funciona, o texto na tela aparece e a animaзгo й aplicada entгo й o objeto que estб incorreto ou sua skin nгo й compatнvel com o mesmo, tente fazer sua prуpria mascara usando um editor de anexos/attachments.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)