0 Members and 1 Guest are viewing this topic.
if (GetPlayerStat(ID,'kills')) > 3 then begin  SetWeaponActive(ID,1,0);end;
Where do I put the 'if' thing?
OK, but still not working.
08-05-21 17:51:30 Console Log Started08-05-21 17:51:30 Welcome to Soldat 1.4.208-05-21 17:51:30 [*] ScriptCore v2.2 loaded! Found 4 scripts...08-05-21 17:51:30 [*] Compiling Custom Advance BETA -> Core.pas...08-05-21 17:51:30 [*] Compiling Custom Advance BETA -> NetworkCore.pas...08-05-21 17:51:30 [*] Compiling Custom Advance BETA -> AdminCore.pas...08-05-21 17:51:30 [*] Custom Advance BETA -> [Error] (120:20): Unknown identifier 'ID'08-05-21 17:51:30 [*] Compiling F3Y Server -> Core.pas...08-05-21 17:51:30 [*] Compiling F3Y Server -> NetworkCore.pas...08-05-21 17:51:30 [*] Compiling F3Y Server -> AdminCore.pas...08-05-21 17:51:30 [*] Compiling Spawner v1.5F -> Core.pas...08-05-21 17:51:30 [*] Compiling Spawner v1.5F -> NetworkCore.pas...08-05-21 17:51:30 [*] Compiling Spawner v1.5F -> AdminCore.pas...08-05-21 17:51:30 [*] Compiling Zombie Match Switch v0.9 -> Core.pas...08-05-21 17:51:30 [*] Compiling Zombie Match Switch v0.9 -> NetworkCore.pas...08-05-21 17:51:30 [*] Compiling Zombie Match Switch v0.9 -> AdminCore.pas...08-05-21 17:51:30 Shutting down server...08-05-21 17:51:30 Shutting down admin server...08-05-21 17:51:30 Shutting down ScriptCore...
procedure OnPlayerKill(Killer, Victim: byte; Weapon: string);begin if GetPlayerStat(Killer,'kills') > 3 then begin SetWeaponActive(Killer,1,0); end;end;
08-05-22 18:28:53 Console Log Started08-05-22 18:28:53 Welcome to Soldat 1.4.208-05-22 18:28:53 [*] ScriptCore v2.2 loaded! Found 4 scripts...08-05-22 18:28:53 [*] Compiling Custom Advance BETA -> Core.pas...08-05-22 18:28:53 [*] Compiling Custom Advance BETA -> NetworkCore.pas...08-05-22 18:28:53 [*] Compiling Custom Advance BETA -> AdminCore.pas...08-05-22 18:28:53 [*] Custom Advance BETA -> [Error] (121:32): Type mismatch08-05-22 18:28:53 [*] Compiling F3Y Server -> Core.pas...08-05-22 18:28:53 [*] Compiling F3Y Server -> NetworkCore.pas...08-05-22 18:28:53 [*] Compiling F3Y Server -> AdminCore.pas...08-05-22 18:28:53 [*] Compiling Spawner v1.5F -> Core.pas...08-05-22 18:28:53 [*] Compiling Spawner v1.5F -> NetworkCore.pas...08-05-22 18:28:53 [*] Compiling Spawner v1.5F -> AdminCore.pas...08-05-22 18:28:53 [*] Compiling Zombie Match Switch v0.9 -> Core.pas...08-05-22 18:28:53 [*] Compiling Zombie Match Switch v0.9 -> NetworkCore.pas...08-05-22 18:28:53 [*] Compiling Zombie Match Switch v0.9 -> AdminCore.pas...08-05-22 18:28:53 Shutting down server...08-05-22 18:28:53 Shutting down admin server...08-05-22 18:28:53 Shutting down ScriptCore...