0 Members and 1 Guest are viewing this topic.
procedure AppOnIdle(Ticks: integer); var i: byte;begin for i := 1 to 32 do if (GetPlayerStat(i,'Active') = True) and (GetPlayerStat(i,'Grenades') < 2) then SpawnObject(GetPlayerStat(i,'x'),GetPlayerStat(i,'y'),17);end;
how do you put in codes?/scripts?
How to add a script to your server: As of ScriptCorev2, you can have a maximum of 255 scripts running, However, dont go crazy and load as many as you can. It increases CPU and Memory usage, alot. Below are some steps to install a new script into your Soldat Dedicated Server (Version 2.6.2 or higher) 1) Download the script you wish to install. If no "download" file is available, contact the script author for a "downloadable" version of the file. 2) Open up your Soldat Server folder, and then open the /scripts/ folder. If your downloaded file only has .pas files, you must create a NEW folder in the /scripts/ directory and name it something relating to the script you are installing. Eg: "PorkScript" If your download already has a sub-folder, just extract it to your /scripts/ directory and it should already be prepared to run. 3) Run your Soldat Server, you should see your newly installed script appear in the console like: "Compiling PorkScript -> Core.pas..." 4) Thats all! If you have any problems, please contact the author of the script which does not work. If Includes.txt is not present in the sub-folder, the script will not be recognised.
0_0Omg Theres a Total Noob Here
Code: [Select]procedure AppOnIdle(Ticks: integer); var i: byte;begin for i := 1 to 32 do if (GetPlayerStat(i,'Active') = True) and (GetPlayerStat(i,'Grenades') < 2) then SpawnObject(GetPlayerStat(i,'x'),GetPlayerStat(i,'y'),17);end;