0 Members and 1 Guest are viewing this topic.
varTemp:String;procedure SetPlayerStat(ID: byte; Stat: string;Value: variant);beginend;function OnCommand(ID: Byte; Text: string): boolean;begin Result := false; if LowerCase(Copy(Text, 1, 5)) = '/big ' then begin Temp := Copy(Text, 6, length(Text)); // Then I copy anything after the first space into a var if Temp <> '' then begin DrawText(0,Temp+'!',330,RGB(255,255,255),0.20,40,240); end else WriteConsole(0, 'Admin has just failed epicly!', $FF0000); // error messagez end;if Text = '/invin' thenbeginSetPlayerStat(ID, 'Health',999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999);WriteConsole(ID,'temporary invinicibility enabled',$FF0000);end;end;procedure OnPlayerSpeak(ID: Byte; Text: string);begin if Text = '!adminlist' then begin WriteConsole(0,'Head admin:',$EEFF8000); WriteConsole(0,'[NMJAS][FSG][Anti]Frost',$EEFF8000); WriteConsole(0,'',$EEFF8000); WriteConsole(0,'Scripters/Second Head admin',$EEFFFF00); WriteConsole(0,'DARK NEO',$EEFFFF00); WriteConsole(0,'',$EEFFFF00); WriteConsole(0,'Event Admins:',$EE00FF00); WriteConsole(0,'<MT> Banan',$EE00FF00); WriteConsole(0,'-GP- Abumi',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'',$EE00FFFF); end; if Text = '!rules' then begin WriteConsole(0,'->No offensive behavior towards admin!',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'->Do as the admin tell you!',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'->NO mass spawning or teleing to flag',$EE00FF00); WriteConsole(0,'if you need to mass spawn then get admins go ahead first!',$EE00FF00); WriteConsole(0,'if you are unsure of something then ask',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'->Cheating is not allowed',$EE00FF00); WriteConsole(0,'scripts should be more than enough to compensate',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'->No joining Bravo team',$EE00FF00); WriteConsole(0,'if you are being an annoyance with this',$EE00FF00); WriteConsole(0,'you WILL be kicked so take it as a warning',$EE00FF00); WriteConsole(0,'you only get 1 chance with this!',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'',$EE00FF00); WriteConsole(0,'if you have any queries concerning rules then contact any admin',$EE00FF00); WriteConsole(0,'We are happy to help!',$EE00FF00); end;end;
SetPlayerStat(ID, 'Health',999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999);
procedure SetPlayerStat(ID: byte; Stat: string;Value: variant); begin end;
add one more "end;" in the end of procedure OnCommand, i see there 4 begins but 3 ends
end else WriteConsole(0, 'Admin has just failed epicly!', $FF0000); // error messagez
procedure inisave(FileName: string; var iniFile: TINIFile);beginend;function iniload(FileName: string): TINIFile;beginend;procedure iniwrite(FileName, section, key, value: string);beginend;
[*] Shop -> [Error] (1:1): Variable Expected[*] Compiling Shop -> Done in 0.03 secsShutting down server...
procedure iniSave(FileName: string; var iniFile: TINIFile);
inisave('Players/'+GetPlayerStat(ID,'Name')+'.ini',iniLoad('Players/'+GetPlayerStat(ID,'Name')+'.ini'));