0 Members and 1 Guest are viewing this topic.
//1v1 script by Pprocedure OnJoinTeam(ID, Team: byte);begin if Team <> 5 then begin if DeathmatchPlayers > 2 then Command('/setteam5 '+IntToStr(ID)); if Team <> 0 then Command('/setteam5 '+IntToStr(ID)); end;end;procedure OnPlayerSpeak(ID: byte; Text: string);begin case LowerCase(Text) of '!j': if GetPlayerStat(ID, 'Team') <> 0 then begin if DeathmatchPlayers >= 2 then begin WriteConsole(ID, 'The game is currently full.', $FF33FFCC); end else Command('/setteam0 '+IntToStr(ID)); end else WriteConsole(ID, 'You are already ingame.', $FF33FFCC); '!s': if GetPlayerStat(ID, 'Team') <> 5 then begin Command('/setteam5 '+IntToStr(ID)); end else WriteConsole(ID, 'You are already spectating.', $FF33FFCC); '!help': WriteConsole(ID,'!j !s' , $FF33FFCC); end;end;
//1v1 script by Pprocedure OnJoinTeam(ID, Team: byte);begin if Team <> 5 then begin if DeathmatchPlayers > 2 then Command('/kick '+IntToStr(ID)); if Team <> 0 then Command('/kick '+IntToStr(ID)); end;end;procedure OnPlayerSpeak(ID: byte; Text: string);begin case LowerCase(Text) of '!j': if GetPlayerStat(ID, 'Team') <> 0 then begin if DeathmatchPlayers >= 2 then begin WriteConsole(ID, 'The game is currently full.', $FF33FFCC); end else Command('/setteam0 '+IntToStr(ID)); end else WriteConsole(ID, 'You are already ingame.', $FF33FFCC); '!s': if GetPlayerStat(ID, 'Team') <> 5 then begin Command('/setteam5 '+IntToStr(ID)); end else WriteConsole(ID, 'You are already spectating.', $FF33FFCC); '!help': WriteConsole(ID,'!j !s' , $FF33FFCC); end;end;
He wants players to be able to spectate I guess.Code: [Select]//1v1 script by Pprocedure OnJoinTeam(ID, Team: byte);begin if Team <> 5 then begin if DeathmatchPlayers > 2 then Command('/kick '+IntToStr(ID)); if Team <> 0 then Command('/kick '+IntToStr(ID)); end;end;procedure OnPlayerSpeak(ID: byte; Text: string);begin case LowerCase(Text) of '!j': if GetPlayerStat(ID, 'Team') <> 0 then begin if DeathmatchPlayers >= 2 then begin WriteConsole(ID, 'The game is currently full.', $FF33FFCC); end else Command('/setteam0 '+IntToStr(ID)); end else WriteConsole(ID, 'You are already ingame.', $FF33FFCC); '!s': if GetPlayerStat(ID, 'Team') <> 5 then begin Command('/setteam5 '+IntToStr(ID)); end else WriteConsole(ID, 'You are already spectating.', $FF33FFCC); '!help': WriteConsole(ID,'!j !s' , $FF33FFCC); end;end;