04.12.2016, 18:02
the problem is that you should not use this function GetPlayerWeapon in OnplayerUpdate... you should use it some other callback/function I had the same hang issue when i was using killtimer in OnPlayerConnect.... you could use ysi' timer one by using
task globaltimer[1000] // 1 second
{
// switch(GetPlayerWeapon(playerid)) { case 44, 45: if((keys & KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid)))
}
task globaltimer[1000] // 1 second
{
// switch(GetPlayerWeapon(playerid)) { case 44, 45: if((keys & KEY_FIRE) && (!IsPlayerInAnyVehicle(playerid)))
}

