Pepper spray
#10

Please?

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;
    }
but when annimation is applied textdraws sometimes show and than fastly hide :/ how should I fix this?

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;
}
It's really important for me guys.
Reply


Messages In This Thread
Pepper spray - by Lajko1 - 08.11.2013, 10:20
Respuesta: Pepper spray - by Parka - 08.11.2013, 10:30
Re: Pepper spray - by Lajko1 - 08.11.2013, 11:47
Respuesta: Pepper spray - by Parka - 08.11.2013, 11:59
Re: Pepper spray - by Lajko1 - 08.11.2013, 12:25
Re: Pepper spray - by Lajko1 - 08.11.2013, 17:38
Re: Pepper spray - by DaniceMcHarley - 08.11.2013, 17:39
Re: Pepper spray - by Lajko1 - 08.11.2013, 17:48
Re: Pepper spray - by Lajko1 - 08.11.2013, 18:07
Re: Pepper spray - by Lajko1 - 08.11.2013, 19:45

Forum Jump:


Users browsing this thread: 4 Guest(s)