Is there any more efficient way to make this work ?
#1

Hey guys, as the title says, is there a better way ?

OnGameModeInit
PHP код:
SetTimer("WeaponChange"10001); 
WeaponChange
PHP код:
// Weapon Change
forward WeaponChange();
public 
WeaponChange()
{
    foreach(new 
playerid Player) if(LastWeapon[playerid] != GetPlayerWeapon(playerid)) OnPlayerSwitchWeapon(playeridLastWeapon[playerid], GetPlayerWeapon(playerid));
    return 
1;

Thanks in advice
Reply


Messages In This Thread
Is there any more efficient way to make this work ? - by NeXoR - 14.11.2016, 20:21
Re: Is there any more efficient way to make this work ? - by iLearner - 14.11.2016, 20:25
Re: Is there any more efficient way to make this work ? - by NeXoR - 14.11.2016, 20:31
Re: Is there any more efficient way to make this work ? - by SickAttack - 14.11.2016, 20:38
Re: Is there any more efficient way to make this work ? - by Vince - 14.11.2016, 20:42
Re: Is there any more efficient way to make this work ? - by NeXoR - 15.11.2016, 12:13

Forum Jump:


Users browsing this thread: 3 Guest(s)