AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Project my Mod (https://forums.alliedmods.net/showthread.php?t=229031)

Snitch 10-31-2013 11:12

Project my Mod
 
i want to project my mod?
what i should to do?

plugin_init?
what type in?
Who will take cute, can not use it. Have protection

Rirre 10-31-2013 11:47

Re: Project my Mod
 
Your english is horrible.
Do something about it as a beginning.

Snitch 10-31-2013 12:36

Re: Project my Mod
 
Quote:

Originally Posted by Rirre (Post 2055148)
Your english is horrible.
Do something about it as a beginning.

Why does that matter now?
The main thing is understanding me?

I just want to mod protections.

Rirre 10-31-2013 13:31

Re: Project my Mod
 
Quote:

Originally Posted by Snitch (Post 2055167)
Why does that matter now?
The main thing is understanding me?

Do you understand this language what it does without any program (= use your brain)?
++++++++++[>+++++++>++++++++++>+++>+<<<<-]>++.>+.+++++++..+++.>++.<<+++++++++++++++.>.+ ++.------.--------.>+.
No? Then you should understand what I am trying to point out

ironskillz1 10-31-2013 14:13

Re: Project my Mod
 
He is asking for protection for his Mod.
But protection isnt needed becuse you always need to give out sma file when you give someone the amxx file

Rirre 10-31-2013 14:36

Re: Project my Mod
 
Quote:

Originally Posted by ironskillz1 (Post 2055197)
He is asking for protection for his Mod.
But protection isnt needed becuse you always need to give out sma file when you give someone the amxx file

Quote:

Originally Posted by Snitch (Post 2055130)
...can not use it. Have protection

He do not mention anything to protect it from people from stealing the compiled version (.amxx) or prevent exploits from the plugin itself from unauthorized players which is not supposed to have access to etc. a command restricted to granted players.

Snitch 10-31-2013 15:23

Re: Project my Mod
 
@-@ I done with my mod..

I just want put my ip inside, should that will work only in my server...that what I mean..project ip.

dark_style 10-31-2013 15:32

Re: Project my Mod
 
https://forums.alliedmods.net/showthread.php?t=228125

Snitch 10-31-2013 16:01

Re: Project my Mod
 
thank you. that should be work?
if I type my ip inside, the mod will running only in my server?

PHP Code:

 public plugin_init()
{
  new 
addr[32];
  
get_user_ip(0addrcharsmax(addr));

  if (!
equal(addr"89.44.44.44:27000"))
  {
    
log_error(0"Remove XXXX plugin.");
    for (new 
0i+1i++){
         
// infinite loop
    
}
  }


what that: log error remove xxx?
what that mean?

Rirre 10-31-2013 16:55

Re: Project my Mod
 
Quote:

Originally Posted by Snitch (Post 2055235)
what that: log error remove xxx?
what that mean?

amxmodx.inc
Code:
/* Logs an error in your native, and breaks into the debugger.  * Acts as if the calling plugin had the error.  */ native log_error(error, const fmt[], any:...);


All times are GMT -4. The time now is 16:51.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.