i need idea.
#1

hello !

I built a new weapon is my serve.
Built on a Baseball bat weapons.

But I have a small problem.
I tried to do that once a player replaces weapons, that he suppress the object ..
I like this timer is supposed to check if the player's weapon is not equal to 5:

pawn Код:
public WeaponsTimer(playerid)
{
    if(GetPlayerWeapon(playerid) == 5 && !IsPlayerInAnyVehicle(playerid))
    {
        RemovePlayerAttachedObject(playerid,0);
        SetPlayerAttachedObject(playerid,0,2045,6,0.039999,0.000000,0.250000,90.000000,0.000000,0.000000,3.800000,1.300000,3.800000);
    }
    else
    {
        RemovePlayerAttachedObject(playerid,0);
    }
    return true;
}
But it takes the object only after a second or so since he replace the weapon.
Does anyone have an idea how to do it directly suppress the object?
Thanks in advance helpers
Reply


Messages In This Thread
i need idea. - by EviLpRo - 31.07.2011, 10:11
Re: i need idea. - by Toreno - 31.07.2011, 10:14
Re: i need idea. - by EviLpRo - 31.07.2011, 10:16
Re: i need idea. - by MoroDan - 31.07.2011, 10:20
Re: i need idea. - by EviLpRo - 31.07.2011, 10:21
Re: i need idea. - by EviLpRo - 31.07.2011, 11:26
Re: i need idea. - by EviLpRo - 31.07.2011, 17:13
Re: i need idea. - by EviLpRo - 01.08.2011, 07:51

Forum Jump:


Users browsing this thread: 1 Guest(s)