Animation Problem
#1

Hi guys,

When i updated my mod to RC8, i face to face with a little problem.
i have some 'dead' system when players die.. when their hp's goes '0' they crack and cant move anywhere in 3 min.
Everything were fine but today when i, or anyone die 'crack' animation does not work.

When i use drugs, or smoke it works well, we can see the animation. But when die, it doesnt work. Player just waiting on food position.

also i removed my 'gl_actions.amx' and remove it from server.cfg.

firstly i thought that cause is this. but when i removed gl_actions from FS and CFG smoke or drugs animations r still work. how ?

ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);

how mod can see it ? i removed gl_Actions..
and why just dead system's anim doesnt work ?


Part of mine 'die' system's code


Код:
		if(IsPlayerNPC(playerid)) return 1;
	 	if(oldu[playerid] == 1)
	 	{
	 	SetPlayerPos(playerid, olumPos[1], olumPos[2], olumPos[3]);
		SetPlayerCameraPos(playerid, olumPos[1], olumPos[2], olumPos[3]+10);
		SetPlayerCameraLookAt(playerid, olumPos[1], olumPos[2], olumPos[3]);
	 	SetPlayerHealth(playerid, 10000);
	 	yyerdesin8[playerid] = SetTimerEx("yerdesin8", 60000, false, "d", playerid);
	 	yyerdesin7[playerid] = SetTimerEx("yerdesin7", 120000, false, "d", playerid);
	 	yyerdesin6[playerid] = SetTimerEx("yerdesin6", 180000, false, "d", playerid);
	 	yyerdesin5[playerid] = SetTimerEx("yerdesin5", 195000, false, "d", playerid);
	 	yyerdesin4[playerid] = SetTimerEx("yerdesin4", 196000, false, "d", playerid);
	 	yyerdesin3[playerid] = SetTimerEx("yerdesin3", 197000, false, "d", playerid);
	 	yyerdesin2[playerid] = SetTimerEx("yerdesin2", 198000, false, "d", playerid);
	 	yyerdesin1[playerid] = SetTimerEx("yerdesin1", 199000, false, "d", playerid);
	 	yyerdesin[playerid] = SetTimerEx("yerdesin", 200000, false, "d", playerid);
	 	//aanim[playerid] = SetTimerEx("anim", 1000, false, "d", playerid);
		TogglePlayerControllable(playerid, 0);
		//SetPlayerWeather(playerid, -30);
		SetPlayerTime(playerid, 10, 10);
		ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
	 	TextDrawShowForPlayer(playerid, textdraw1);
	 	PlayerFixRadio(playerid);
	 	SendClientMessage(playerid, COLOR_RED, "Yaralandınız! Ьз dakika boyunca hareket edemeyeceksiniz.");
 		new string[256];
 		new sendername[MAX_PLAYER_NAME];
		GetPlayerName(playerid, sendername, sizeof(sendername));
  		format(string, sizeof(string), "* Yerde kıvranmaktadır. (( %s )).", sendername);
  		ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
		return 1;
	 	}
thanks
Reply
#2

why it doesnt work ?

ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);

nobody can help me ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)