0 Members and 3 Guests are viewing this topic.
procedure OnJoinTeam(ID, Team: byte)begin if Team <> 1 and 5 then Command('/setteam1 ' + IntToStr(ID));end;
Code: [Select]procedure OnJoinTeam(ID, Team: byte)begin if Team <> 1 and 5 then Command('/setteam1 ' + IntToStr(ID));end;
Quote from: miketh2005 on July 10, 2009, 07:31:20 pmDonate to enesceHAHAHAHAHAHAHA
Donate to enesce
procedure OnJoinTeam(ID, Team: byte);var i: byte;begin if Team = 1 then begin for i = 1 to 16 do begin // disable all weapons SetWeaponActive(ID,i,false); end; SetWeaponActive(ID,11,true); // enable flamer SetWeaponActive(ID,14,true); // enable knife SetWeaponActive(ID,15,true); // enable chainsaw end;end;
Disabling all other weapons than saw,knife,flamer for alpha team ;(not tested)Code: [Select]procedure OnJoinTeam(ID, Team: byte);var i: byte;begin if Team = 1 then begin for i = 1 to 16 do begin // disable all weapons SetWeaponActive(ID,i,false); end; SetWeaponActive(ID,11,true); // enable flamer SetWeaponActive(ID,14,true); // enable knife SetWeaponActive(ID,15,true); // enable chainsaw end;end;
Should be := in the loop.
procedure OnJoinTeam(ID, Team: byte);var i: byte;begin if Team = 1 then begin for i := 1 to 16 do begin // disable all weapons SetWeaponActive(ID,i,false); end; SetWeaponActive(ID,11,true); // enable flamer SetWeaponActive(ID,14,true); // enable knife SetWeaponActive(ID,15,true); // enable chainsaw end;end;
yes. sorry for my mistake. This should be working:Code: [Select]procedure OnJoinTeam(ID, Team: byte);var i: byte;begin if Team = 1 then begin for i := 1 to 16 do begin // disable all weapons SetWeaponActive(ID,i,false); end; SetWeaponActive(ID,11,true); // enable flamer SetWeaponActive(ID,14,true); // enable knife SetWeaponActive(ID,15,true); // enable chainsaw end;end;
In SetWeaponActive, Knife is 12 and Chainsaw 13...
//Weapons DEAGLES = 1; HKMP5 = 2; AK74 = 3; STEYR = 4; SPAS = 5; RUGER = 6; M79 = 7; BARRET = 8; MINIMI = 9; MINIGUN = 10; FLAMER = 11; BOW = 12; FLAMEBOW = 13; SOCOM = 0; KNIFE = 14; CHAINSAW = 15; LAW = 16;