Code:
public Action OnPlayerRunCmd(int client, int &buttons)
{
if (IsPlayerAlive(client))
{
if (buttons & IN_RELOAD)
{
if(bEnable)
{
int iUserID = client;
if(GetClientOfUserId(iUserID)) CreateTimer(4.0, Timer_Spawn, iUserID, TIMER_FLAG_NO_MAPCHANGE);
}
}
}
}
Heres my code and it does not activate FixAmmo stock after 4 seconds while Player running reload button cmd. Could you guys help me please?
and yes bEnable is 1
Code:
public Action OnPlayerRunCmd(int client, int &buttons)
{
if (IsPlayerAlive(client))
{
if (buttons & IN_RELOAD)
{
if(bEnable)
{
int iUserID = client;
if(GetClientOfUserId(iUserID)) CreateTimer(4.0, Timer_Spawn, iUserID, TIMER_FLAG_NO_MAPCHANGE);
}
}
}
}
The problem is in this part of my code i guess. Does anyone have an idea?