0 Members and 1 Guest are viewing this topic.
procedure dec(var X: integer; N: integer);procedure inc (var X: integer; N: integer);
From: player[i].mine[ii].tleft:=player[i].mine[ii].tleft-1;To: dec(player[i].mine[ii].tleft,1);
You can increment : Characters Non-floating number types Enumeration types Pointers
procedure servermodifier(name:string; id:byte; value:variant); servermodifier('gravity',3,0.03); // Only player 3 is affected.servermodifier('gravity',255,0.03); // The entire server is affected.
procedure changeweaponstats(id,weaponid:byte; dmg,interval,ammo,reload,style,startup,bink,movacc,recoil:integer);// ID = 255 changes the weapon for everyone.
procedure writeini(filename,section,key:string; value:variant);
function weaponnumbyname(name:string):byte;a:=weaponnumbyname('Steyr AUG'); // a = 4;
procedure movebot(id:byte; x,y:single);
a:=function addbot(id:byte; x,y:single):byte; // a = bot's ID
function IDToHWID(ID: integer): stringfunction HWIDToID(HWID: string): string;function NameToHWID(Name: string): string;function HWIDToName(HWID: string): string;function IPToHWID(Name: string): string;function HWIDToIP(HWID: string): string;
Script.AddFunction(@NameToHW, 'function NameToHW(A: string): string');Script.AddFunction(@IDToHW, 'function IDToHW(Id: Byte): string');
... or a plugin for Notepad++ including Soldat's scriptcore.
procedure createFolder(name:string);function folderExists(name:string):boolean;
procedure activateserver();begin if (fileexists('maps/')) or (fileexists('maps\')) then writeln(' * EXISTS') else writeln(' * DOES NOT EXIST');end;
procedure deleteFile(name:string);procedure moveFile(name,newdir:string);
procedure onjointeam(id,team:byte); -> function onjointeam(id,team:byte:boolean;onjointeam() = true = allowed to join the team
global var highestID -> holds the highest present ID on the server.