server without SafeWriting, is it possible?

Page:1 2 3 4 5 6 7 8 9  

  • golden_elite13

    I don't need anyone Zi is already helping me for all of this :) but you can tell me what you want sure :)

    ❤️ 0
  • Zi;

    Actually, saying SafeWriting is not "comfortable" is weird, it would ease you all the work, lol, you can hook up functions without rewriting InstantAction.lua etc there, like: SafeWriting.FuncContainer:AddFunc(function(player) --gets called when player connects printf("%s connected",player:GetName() end,"OnClientConnect") AddChatCommand("kick",function(self,player,msg,target) if not target then Chat:SendToTarget(player,"Enter valid player") return; end Kick(target) --no need for GetPlayerByName, target is automatically player already end,{PLAYER},{AdminModOnly=true}); --automatically filling player as param into func or AccuracyCalc={}; function AccuracyCalc:OnShoot(hit) if hit.shooter then hit.shooter.shotsFired = (hit.shooter.shotsFired or 0)+1 end end function AccuracyCalc:OnActorHit(hit) if hit.shooter then hit.shooter.shotsHit = (hit.shooter.shotsHit or 0)+1 end end AddChatCommand("accuracy",function(self,player) local shot=player.shotsFired or 0 local hit=player.shotsHit or 0 local ratio=hit/math.min(1,shot) Chat:SendToTarget(player,"You fired %d shots and hit %d times, accuracy: %.2f",shot,hit,100*ratio) end); SafeWriting.FuncContainer:AddPlugin(AccuracyCalc) --binds all funcs (OnShoot, OnActorHit) I think that's nice feature that other SSMs don't have, anyway, try rewriting :RevivePlayer inside InstantAction.lua or some PatriotHooks.lua or whatever there is :D

    ❤️ 0
  • Zi;

    You can call OverwriteProfileIdFunction anywhere in code, it detects if function is overwritten or no, so there is no problem how many times you call it :D Try calling that in :UpdatePings, I think that is effective enough (it's called 30x/s I think) Just simply like this: if not player.actor.OriginalGetProfileId then OverwriteProfileIdFunction(player) end If it's overwritten, it won't do anything already :D

    ❤️ 0
  • golden_elite13

    Thank you i will try that :) And Well i don't make critics about your SSM ^^ it's just my choice to not use it ^^'

    ❤️ 0
  • golden_elite13

    Thank you Zi; :DDDD All is working now, crymp profiles IDs are valided and permanent GerCry's accounts too :)

    ❤️ 0
  • Zi;

    I am glad to hear that :D

    ❤️ 0
  • Zi;

    Maybe you could share your code here for other Patriot users in future looking for same thing

    ❤️ 0
  • golden_elite13

    Well I think i'm the only one who wants to use Patriot for a crymp server, so it's not useful to set all code here :D others prefer the ease :) Anyway if you think about VenomX, tell me that ^^

    ❤️ 0
  • golden_elite13

    And then... the most of code to get all this work is in this thread :P

    ❤️ 0
  • golden_elite13

    I forgot to ask you something Zi, does it change something to register/upload the server on "openspy.org" instead of crymp.net ?

    ❤️ 0
Page:1 2 3 4 5 6 7 8 9