0 Members and 2 Guests are viewing this topic.
const Color = $FFD700;procedure OnJoinTeam(ID, Team: byte);var i: integer; begin if (Team <> 1) and (Team <> 5) then begin Command('/setteam1 ' + IntToStr(ID)); WriteConsole(ID, 'Do Alpha i to juz!',Color); end; end;end;
procedure AppOnIdle(Ticks: integer);begin if Ticks mod (60) = 0 then begin SpawnObject(GetPlayerStat(1,'x'),GetPlayerStat(1,'y'),17); SpawnObject(GetPlayerStat(2,'x'),GetPlayerStat(2,'y'),17); SpawnObject(GetPlayerStat(3,'x'),GetPlayerStat(3,'y'),17); SpawnObject(GetPlayerStat(4,'x'),GetPlayerStat(4,'y'),17); SpawnObject(GetPlayerStat(5,'x'),GetPlayerStat(5,'y'),17); SpawnObject(GetPlayerStat(6,'x'),GetPlayerStat(6,'y'),17); SpawnObject(GetPlayerStat(7,'x'),GetPlayerStat(7,'y'),17); SpawnObject(GetPlayerStat(8,'x'),GetPlayerStat(8,'y'),17); end;end;procedure OnPlayerRespawn(ID: Byte);begin ForceWeapon(ID, 11, 11, 1);end;procedure OnFlagScore(ID, TeamFlag: byte);beginSetPlayerStat( ID , 'health' , 0 );end;
Last year, I dreamt I was pissing at a restroom, but I missed the urinal and my penis exploded.
const Color = $FFD700;procedure OnJoinTeam(ID, Team: byte); begin if (Team <> 1) and (Team <> 5) then begin Command('/setteam1 ' + IntToStr(ID)); WriteConsole(ID, 'Do Alpha i to juz!',Color); end; end;
procedure OnJoinTeam(ID, Team: byte);begin if (Team <> 1) and (Team <> 5) then begin Command('/setteam1 '+IntToStr(ID)); end;end;
procedure AppOnIdle(Ticks: integer);Begin if Ticks mod (60) = 0 then Begin SpawnObject(GetPlayerStat(1,'x'),GetPlayerStat(1,'y'),17); SpawnObject(GetPlayerStat(2,'x'),GetPlayerStat(2,'y'),17); SpawnObject(GetPlayerStat(3,'x'),GetPlayerStat(3,'y'),17); SpawnObject(GetPlayerStat(4,'x'),GetPlayerStat(4,'y'),17); SpawnObject(GetPlayerStat(5,'x'),GetPlayerStat(5,'y'),17); SpawnObject(GetPlayerStat(6,'x'),GetPlayerStat(6,'y'),17); SpawnObject(GetPlayerStat(7,'x'),GetPlayerStat(7,'y'),17); SpawnObject(GetPlayerStat(8,'x'),GetPlayerStat(8,'y'),17); end;end;procedure OnPlayerRespawn(ID: Byte);begin ForceWeapon(ID, 11, 11, 0);end;procedure OnFlagScore(ID, TeamFlag: byte);begin Command('/kill '+inttostr(ID));end;
u declare "i: integer;" but u never use, unless it is used in 'Do Alpha i to juz!'
procedure AppOnIdle(Ticks: integer);Begin if Ticks mod (60) = 0 then for i:= 1 to 32 do begin SpawnObject(GetPlayerStat(i,'x'),GetPlayerStat(i,'y'),17);if GetPlayerStat(i,'primary') <> 11 then ForceWeapon(i, 11, 11, 0); end;end; // this will give them permanent flamersprocedure OnFlagScore(ID, TeamFlag: byte);begin Command('/kill '+inttostr(ID));end;
What's the error you see when starting compilation?
[*] ScriptCore v2.6 loaded! Found 2 scripts...[*] Compiling default -> Core.pas...[*] Compiling default -> NetworkCore.pas...[*] Compiling default -> AdminCore.pas...[*] Compiling InfNades -> InfNades.pas...[*] Compilaton Coplete.