0 Members and 1 Guest are viewing this topic.
const DPM = 3;var dp: array[1..32] of integer; procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);begin if (GetPlayerStat(Victim,'Team') = 1 then begin dp[ID] := 1 end;end;procedure OnPlayerRespawn(ID: Byte);begin if GetPlayerStat(ID, 'Team') = 1 then begin SetWeaponActive(ID,13,false); end; if dp[ID] := DPM then if (GetPlayerStat(ID,'Team')) <> 5 then begin Command('/setteam5 ' +inttostr(ID)); end;end;
constDeathPointMax = 3;Num_Of_Pl=10;vardp: array[1..Num_Of_Pl] of integer;PlayerLock: array[1..32] of byte;//Lock procedure by DorkeyDear(Curt)procedure Lock(Id, Team: byte);begin PlayerLock[Id] := Team; if (Team < 6) then begin SayToPlayer(Id, 'You are locked on team ' + InttoStr(Team) + '.'); if (GetPlayerStat(Id, 'Team') <> Team) then Command('/setteam' + InttoStr(Team) + ' ' + InttoStr(Id)); end; end;procedure DeathPointCount(ID: byte);begin dp[ID]:=dp[ID]+1; if dp[ID]=DeathPointMax then begin WriteConsole(ID,'Sorry, out of respawns!',$EE00FFFF); Lock(ID, 5) end else WriteConsole(ID,'Now you have '+inttostr(dp[ID])+'/'+inttostr(DeathPointMax)+' deathpoints',$EE00FFFF);end;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);begin if (GetPlayerStat(Victim,'Team') = 1 then begin DeathPointCount(Victim) end;end;procedure OnPlayerRespawn(ID: Byte);begin if dp[ID] := DeathPointMax then if (GetPlayerStat(ID,'Team')) <> 5 then begin Command('/setteam5 ' +inttostr(ID)); end;end;
mmmm my compiler said 1 / 1 maniac~1.pas Fatal: Syntax error, BEGIN expected but identifier ONST foundwith your code.....
Well , i tried to make a dethpoint code ,and im near from finishing it Here it goes:Code:constDeathPointMax = 3;Num_Of_Pl=10;vardp: array[1..Num_Of_Pl] of integer;PlayerLock: array[1..32] of byte;//Lock procedure by DorkeyDear(Curt)procedure Lock(Id, Team: byte);begin PlayerLock[Id] := Team; if (Team < 6) then begin SayToPlayer(Id, 'You are locked on team ' + InttoStr(Team) + '.'); if (GetPlayerStat(Id, 'Team') <> Team) then Command('/setteam' + InttoStr(Team) + ' ' + InttoStr(Id)); end; end;procedure DeathPointCount(ID: byte);begin dp[ID]:=dp[ID]+1; if dp[ID]=DeathPointMax then begin WriteConsole(ID,'Sorry, out of respawns!',$EE00FFFF); Lock(ID, 5) end else WriteConsole(ID,'Now you have '+inttostr(dp[ID])+'/'+inttostr(DeathPointMax)+' deathpoints',$EE00FFFF);end;procedure OnPlayerKill(Killer, Victim: byte;Weapon: string);beginif (GetPlayerStat(Victim,'Team') = 1 then begin DeathPointCount(Victim)end;end;procedure OnPlayerRespawn(ID: Byte);beginif dp[ID] := DeathPointMax then if (GetPlayerStat(ID,'Team')) <> 5 then begin Command('/setteam5 ' +inttostr(ID));end;end;Can u be so kind and check it please? --------------------------------------------------