Raised This Month: $51 Target: $400
 12% 

FuncommandsX


Post New Thread Reply   
 
Thread Tools Display Modes
Lob (UK
Veteran Member
Join Date: Jun 2009
Old 07-13-2013 , 05:47   Re: FuncommandsX
Reply With Quote #461

Teleport is working fine here too. No problems with this plugin whatsoever. ;)

- Lob (UK)
Lob (UK is offline
sheng
Member
Join Date: Jan 2013
Old 07-14-2013 , 18:16   Re: FuncommandsX
Reply With Quote #462

Ok so I Reinstall SM, lets see if it works.

EDIT: yes I found the error, my hoosting change the SM 1.5 to 1.6 and I read that the 1.6 its for CS:GO and its not stable at all, so I reinstall SM 1.5, and now it works perfectly.

sorry for the trouble, and thanks for helping me in the comments
__________________

Last edited by sheng; 07-15-2013 at 00:09.
sheng is offline
Fearts
ferts of daeth
Join Date: Oct 2008
Old 07-14-2013 , 19:53   Re: FuncommandsX
Reply With Quote #463

Voided made a small script edit for me that stops people from spamming sm_colorme command. I had people write a small executable config script that would change their color ever second. It spammed my server and I believe caused it to crash.

Attached is the two edited .sp files. All it does it add a cvar that will allow you to set a timer between uses of sm_colorme.
Attached Files
File Type: sp Get Plugin or Get Source (rgba.sp - 148 views - 9.1 KB)
File Type: sp Get Plugin or Get Source (colorize.sp - 141 views - 9.8 KB)
__________________
Fearts is offline
avi9526
Senior Member
Join Date: Apr 2013
Location: Ukraine
Old 07-15-2013 , 16:03   Re: FuncommandsX
Reply With Quote #464

Hi!

I am running fun mvm server. And I wanted to make command sm_tpme (teleport me), so any player or, at least, reserved-slot players (my friends) could teleport themselves. I have modified source code of this plugin a little to add this function. But me is not programmer and I am afraid that I could miss something important and my modification could be dangerous for server security and stability.
If some one could check if my patch is good — that will be awesome…
Code is here: https://bitbucket.org/avi9526/funcommandsx

Diff:
Code:
diff -r e6f29ac15a3d -r 036b17dc365a scripting/funcommandsX/teleport.sp
--- a/scripting/funcommandsX/teleport.sp    Mon Jul 15 21:32:21 2013 +0300
+++ b/scripting/funcommandsX/teleport.sp    Mon Jul 15 22:14:44 2013 +0300
@@ -8,6 +8,7 @@
 
 *****************************************************************/
 new Float:g_pos[3];
+new Handle:cvar_SelfTeleport;
 
 /*****************************************************************
 
@@ -19,6 +20,8 @@
 public SetupTeleport()
 {
     RegAdminCmd("sm_tele", Command_Tele, ADMFLAG_SLAY, "sm_tele <#userid|name> - Teleports player to where admin is looking");
+    RegConsoleCmd("sm_tpme", Command_TeleMe, "sm_tpme - teleport yourself");
+    cvar_SelfTeleport = CreateConVar("sm_selfteleport", "0", "Allow players to teleport themselves with sm_tpme");
 }
 
 /****************************************************************
@@ -82,6 +85,41 @@
     return Plugin_Handled;    
 }
 
+public Action:Command_TeleMe(client, args)
+{
+    if( !GetConVarInt(cvar_SelfTeleport) )
+    {    
+        ReplyToCommand(client, "[SM] Command disabled, to enable set sm_selfteleport to 1");
+        return Plugin_Handled;    
+    }
+    //validate args
+    if (args >= 1)
+    {
+        ReplyToCommand(client, "[SM] Command does not require arguments");
+    }
+    
+    if(!client)
+    {
+        ReplyToCommand(client, "[SM] Cannot teleport from rcon");
+        return Plugin_Handled;    
+    }
+    
+    if(!SetTeleportEndPoint(client))
+    {
+        return Plugin_Handled;
+    }
+    
+    if(!IsPlayerAlive(client) || !IsClientInGame(client))
+    {
+        ReplyToCommand(client, "[SM] Can't teleport dead player");
+        return Plugin_Handled;
+    }
+    
+    PerformTeleport(client, client, g_pos);
+    
+    return Plugin_Handled;    
+}
+
 public bool:TraceEntityFilterPlayer(entity, contentsMask)
 {
     return entity > GetMaxClients() || !entity;
@@ -286,4 +324,4 @@
             DisplayTeleMenu(param1);
         }
     }
-}
\ No newline at end of file
+}
avi9526 is offline
Cookedbeefchops
Junior Member
Join Date: Jun 2013
Old 11-03-2013 , 22:25   Re: FuncommandsX
Reply With Quote #465

I don't have the source file...
Cookedbeefchops is offline
jeezz
Senior Member
Join Date: Apr 2012
Location: netherlands
Old 11-15-2013 , 06:20   Re: FuncommandsX
Reply With Quote #466

hi all

what does this error mean...

[funcommandsX.smx] Game detected as Other (unknown) (GAME_OTHER)

and what can i do abouth this?

thx!
jeezz is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 11-15-2013 , 08:36   Re: FuncommandsX
Reply With Quote #467

Quote:
Originally Posted by jeezz View Post
hi all

what does this error mean...

[funcommandsX.smx] Game detected as Other (unknown) (GAME_OTHER)

and what can i do abouth this?

thx!
Try to find out what source engine mods(like TF2) this plugin does support and match it to what your trying to add this plugin to
WildCard65 is offline
darkboy245
Senior Member
Join Date: Feb 2014
Old 02-13-2014 , 08:14   Re: FuncommandsX
Reply With Quote #468

Is it possible to allow my donators with a special custom group to have the /colorme command?
If yes, how?
darkboy245 is offline
hamza47sohail
Senior Member
Join Date: Jan 2014
Old 06-05-2014 , 21:42   Re: FuncommandsX
Reply With Quote #470

I think the sm_happy command is not working. Can anyone else confirm this?
When you happy someone they are just unable to type.
__________________
The Server Is In CANADA GameTracker Is Being Weird
hamza47sohail is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:32.


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