Author Topic: Easy Script  (Read 1502 times)

0 Members and 1 Guest are viewing this topic.

Offline Glucosamina

  • Major(1)
  • Posts: 6
Easy Script
« on: April 29, 2008, 04:54:04 pm »
I know that script is easy but i didn't find it in this webpage. I want script for deticated serwer 2.6.3 which when i'll write !nuubia the server will change map for ctf_Nuubia. An when i ll write commands the server will show me all commands for example (!nuubia etc.)

Offline Mistercharles

  • Veteran
  • *****
  • Posts: 1371
  • +
Re: Easy Script
« Reply #1 on: April 29, 2008, 05:55:19 pm »
The only problem with what you want is that Soldat won't know if you mean ctf_Nuubia, inf_Nuubia, htf_Nuubia, or just plain Nuubia. In order to make this work, you'd probably need a giant case expression, which would be annoying, because 1) a case would have to be typed out for every single map, and 2) if you added a map to your server, you'd have to update the script.

A big pain, in my opinion. I would just scrap the idea of the automatic gametype detection and stick with typing !ctf_Nuubia.

Oh, and sorry, but I can't help you with this problem. I'm not much of a coder.
shoutout to m'boyz eagles_arrows, echo_trail, wraithlike, sadistatheart, chakapoko maker, jrgp, aznblood, chakra, keron cyst, et al, miss you, let's '#gather some day

Offline Mr Pink

  • Major(1)
  • Posts: 37
Re: Easy Script
« Reply #2 on: April 29, 2008, 11:17:42 pm »
Writing a script containing every map name would be a lot of work... I would do a command like:
!map <part of map name> eg !map nuubia

then have your script look through the maplist for a mask match for nuubia

I don't see any appeal for such a script though as who wants any player being able to change maps at any time... perhaps consider a vote started on the command?

Your best bet for this script is a combination of the map randomizer and map specification script both by curt I think

Offline DorkeyDear

  • Veteran
  • *****
  • Posts: 1507
  • I also go by Curt or menturi
Re: Easy Script
« Reply #3 on: April 30, 2008, 05:22:00 am »
Writing a script containing every map name would be a lot of work... I would do a command like:
would require a mapslist of all maps on the server (could be generated through a program though)

Offline Glucosamina

  • Major(1)
  • Posts: 6
Re: Easy Script
« Reply #4 on: May 23, 2008, 12:54:31 pm »
Hi . Again me. This time i searching script which for example when i write in cmd bow 1 then player 1 got the bow :> etc.  in all game style .

Offline Moa124

  • Major(1)
  • Posts: 6
  • And they shall know no fear...
Re: Easy Script
« Reply #5 on: May 28, 2008, 10:08:38 am »
y dont you look at this: http://www.taoyue.com/tutorials/pascal and this: http://enesce.com/help/ ? You could even try to do this one yourself.... Maybe you could use OnCommand and SpawnOblect. But you wouldnt get what you want beacause u can't spawn the bow with SpawnObject.... Anyway, that script would be a bit cheating, beacause the way I explaned, only Admins can use it and as you're the admin of your server, you could just have a bit fun naggin' your friends (though i wouldt play with someone using a bow...)

Offline Glucosamina

  • Major(1)
  • Posts: 6
Re: Easy Script
« Reply #6 on: May 29, 2008, 08:16:22 am »
Hmmmh. I wrote this post becasue i couldn't do that. I saw bow in capture the flag so as a admin of my server i want bow 2.  Sometimes i want to have fun with my friends who are admin with me . :) Its all.
« Last Edit: May 29, 2008, 08:25:14 am by Glucosamina »

Offline Moa124

  • Major(1)
  • Posts: 6
  • And they shall know no fear...
Re: Easy Script
« Reply #7 on: May 29, 2008, 08:37:10 am »
Okay....oh did ye mean that the bow will be picked up by some player and theres only one bow. I mean other players can get it to...a mix of ctf and rambomatch?

Offline Glucosamina

  • Major(1)
  • Posts: 6
Re: Easy Script
« Reply #8 on: May 29, 2008, 08:45:47 am »
In cmd if i write bow 1 and player 1 is admin then player 1 got the bow. If player 1 die the bow will disappeard.  I want have it in all games style.

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Easy Script
« Reply #9 on: May 29, 2008, 08:47:29 am »
You can't use bow in non-Rambo matches, even through scripting.

Offline Glucosamina

  • Major(1)
  • Posts: 6
Re: Easy Script
« Reply #10 on: May 29, 2008, 10:01:55 am »
Hmmmh. About 1 year ago I played in server which called "CLIMB HELL". Sometimes admin of this server joined to game and extracted the bow . I wrote to him " i want bow 2 " then he said " you can't server will kick you for BE". Im sure he had BOW.
:)

Offline EnEsCe

  • Retired Soldat Developer
  • Flamebow Warrior
  • ******
  • Posts: 3101
  • http://enesce.com/
    • [eC] Official Website
Re: Easy Script
« Reply #11 on: May 29, 2008, 10:03:38 am »
Yes, and had Anti-Cheat disabled, which is extremely unrecommended and I would NEVER suggest any server doing it ever, no matter what it achieves.















Ever.

Offline Glucosamina

  • Major(1)
  • Posts: 6
Re: Easy Script
« Reply #12 on: May 29, 2008, 10:09:44 am »
Yes you're right. There was a lot of cheater :> THX FOR INFO :)