08.11.2013, 19:45
Please?
I tested this with command:
but when annimation is applied textdraws sometimes show and than fastly hide :/ how should I fix this?
Will this work?
It's really important for me guys.
I tested this with command:
pawn Код:
if (strcmp("/test", cmdtext, true, 5) == 0)
{
ApplyAnimation(playerid,"CRACK","null",4.0,0,0,0,0,0,0);
ApplyAnimation(playerid,"CRACK","crckdeth1",4.0,0,0,0,0,0,0);
IsSprayed[playerid] = 1;
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
return 1;
}
Will this work?
pawn Код:
public OnPlayerTakeDamage(playerid, issuerid, Float: amount, weaponid)
{
if(issuerid != INVALID_PLAYER_ID && weaponid == 41 && IsPlayerCop(playerid))
{
ApplyAnimation(playerid,"CRACK","null",4.0,0,0,0,0,0,0);
ApplyAnimation(playerid,"CRACK","crckdeth1",4.0,0,0,0,0,0,0);
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
TextDrawShowForPlayer(playerid,Textdraw2);
TextDrawShowForPlayer(playerid,Textdraw3);
TextDrawShowForPlayer(playerid,Textdraw4);
}
return 1;
}