English Script will only work on a local server

5 replies
Goto Page
To the start Previous 1 Next To the start
Up
Hajt
User
Offline Off
script
Code:
1
2
3
4
5
6
7
8
function server.standard.say(id,txt)
     for _, usgn in ipairs(server.standard.admins) do
          if (player(id,'usgn')==usgn) then
               msg(string.char(169).."000255000"..player(id,"name").." [admin]: "..string.char(169).."255220000"..txt)
               return 1
          end
     end
end


local server
IMG:http://cs2d.xaa.pl/images/screens/test1.png


dedicated server
IMG:http://cs2d.xaa.pl/images/screens/test2.png
30.12.13 08:43:56 pm
Up
Fehu
User
Offline Off
What is wrong with PL people? Teh fck.. lol
I can't understand you.. Nobody can..

//Ah I didn't saw screenshots. But.. Still I can't help you. Maybe you used another SAY HOOK without return?
IMG:http://www.flashflashrevolution.com/profile/newsiggy/Fehu/stardust/0/0-1-2-3-4-5.png
30.12.13 08:48:16 pm
Up
mafia_man
User
Offline Off
user Fehu has written:
What is wrong with PL people? Teh fck.. lol
I can't understand you.. Nobody can..

//Ah I didn't saw screenshots. But.. Still I can't help you. Maybe you used another SAY HOOK without return?

http://screenshooter.net/1685059/kgupddr

Your post 5 years ago.
30.12.13 09:06:06 pm
Up
Gajos
BANNED
Offline Off
It's an error in the script. I have never had such a problem.
Stop copy and edit scripts.

PS. Na unlimited construction moge wam napisac lua.

EDIT:
On the picture local server we can't see hudtxt2's text.
edited 3×, last 30.12.13 10:12:31 pm
Banned for Hacking/Cheating in CS2D /DC
30.12.13 10:14:16 pm
Up
VADemon
User
Offline Off
Turn off all other scripts on your dedicated server.
30.12.13 10:37:25 pm
Up
Avo
User
Offline Off
The answer is simple. There are two functions hooked to hook "say". Read about priorities.
Quote:
Priority is only important if there is more than one function attachted to the same hook!
Default is 0, higher numbers = higher priority, lower numbers (also negative) = lower priority.
The attached function with the HIGHEST priority is the LAST function which will be executed.
Moreover CS2D will take the return value of this function (if there is any)!
In most cases you will just omit the priority parameter (yes, it is [optional])!

Code:
addhook("say", "server.standard.say", 9999)

Btw, do you use my script from cartel's server?
Trust me, I'm an engineer | user DC approved file cs2d Super extra mod for CS2D (64), yeah!
To the start Previous 1 Next To the start