0 Members and 1 Guest are viewing this topic.
procedure OnPlayerRespawn(ID: Byte);begin DoDamage(ID,1); ForceWeapon(ID,2,7,0); GiveBonus(ID, 3);end;
if GetPlayerStat(ID, 'Alive') then begin if Text = 'SomeText' then ForceWeapon(ID,2,7,0);end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);
Description:This procedure will be called every time a player switches weapons, drops a weapon, picks up a weapon, and when they pick a gun from the respawn menu.
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin OnWeaponChange(ID, 2, 7);end;
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin ForceWeapon(ID,2,7,0);end;
if (PrimaryNum <> 2) and (SecondaryNum <> 7) or (PrimaryNum <> 7) and (SecondaryNum <> 2) then ForceWeapon(ID,2,7,0);
procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin if (PrimaryNum <> 2) and (SecondaryNum <> 7) then ForceWeapon(ID,7,2,0);end;
varAfterRespawn : array[1..32] of boolean;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin if AfterRespawn[ID] then beginForceWeapon(ID,7,2,0);AfterRespawn := false;end;end;procedure OnPlayerRespawn(ID: Byte);beginAfterRespawn[ID] := true;end;
varAfterRespawn : array[1..32] of boolean;procedure OnWeaponChange(ID, PrimaryNum, SecondaryNum: Byte);begin if AfterRespawn[ID] then begin ForceWeapon(ID,7,2,0); AfterRespawn[ID] := false; end;end;procedure OnPlayerRespawn(ID: Byte);begin AfterRespawn[ID] := true;end;
How do you want the weapons to be forced?I could make a short script if id knew how do you want it to.