0 Members and 1 Guest are viewing this topic.
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);begin if (Weapon = 'Chainsaw') and (GetPlayerStat(Killer,'Team') <> GetPlayerStat(Victim,'Team')) then SetScore(Killer,GetPlayerStat(Killer,'Kills') - 1);end;
procedure AppOnIdle(Ticks: integer); //AppOnIdle is executed every secondvar i: byte;begin for i:=1 to 32 do //This loop will allow me to check every single playerslot, as their can be a maximum of 32 player IDs. If (GetPlayerStat(i,'Active') = true) and (GetPlayerStat(i,'Human') = true) then begin //checks wether ID is active (=player exists) and is human (not bot) If GetPlayerStat(i,'Primary') = 15 then //Checks if primary of the player is a saw, if it is, it forces fist as primary instead (fist = 255) ForceWeapon(i,255,GetPlayerStat(i,'Secondary'),0); If GetPlayerStat(i,'Secondary') = 15 then //Same for secondary ForceWeapon(i,GetPlayerStat(i,'Primary'),255,GetPlayerStat(i,'Ammo')); end;end;