Raised This Month: $32 Target: $400
 8% 

Help Please.Someone experienced with NeMod and Eventscripts


  
 
 
Thread Tools Display Modes
Author Message
enforcer021
Junior Member
Join Date: Jul 2005
Old 06-16-2005 , 20:22   Help Please.Someone experienced with NeMod and Eventscripts
#1

Im tyring to make a deathmatch server like the ones in 1.6 and I need a little help.
I need help being able to to respwan players at radom locations instead of just back to there spawn zone. I have 20 spawn points written down based on xyz coordinates. How would i set this up?

I've made a custom buy menu that will allow players to buy weapons outside of the buyzone. I did this by using nm_give and nm_ammo. Both commands are made available to everyone in the server. The only problem with my buymenu is that you need to enter the players name in the command instead of just using nm_give weapon_ak47 based on who click on that weapon.
Is there a command in NemoD that is equivalent to Eventscripts' "event_var(es_username)"? This way when i client clicks on what weapon they want it will fill in their username for them?

This may seem a little confuseing so if you have a question about what im trying to do i'll try my best to explain it better. THanks
enforcer021 is offline
awuh0
Senior Member
Join Date: Apr 2005
Location: /dev/null
Old 06-17-2005 , 00:28  
#2

how about you spawn randomly and say the weapon you want?
that can be done easily with eventscripts
player_say.cfg
Code:
es nm_give event_var(es_username) event_var(text)
es nm_ammo event_var(es_username) prim 0 120
es nm_ammo event_var(es_username) sec 0 120
es nm_armor event_var(es_username) 100
or somethign along those lines
__________________
~The_wUh
_________________
Ph34r teh zombies!!!
find a better way to play CSS, connect to...
thewuh.servebeer.com
thecircus.servebeer.com
awuh0 is offline
Send a message via ICQ to awuh0 Send a message via AIM to awuh0 Send a message via MSN to awuh0
enforcer021
Junior Member
Join Date: Jul 2005
Old 06-17-2005 , 15:07  
#3

Is there a command in NemoD that is equivalent to Eventscripts' "event_var(es_username)"?

And i also need help setting up the radom spawn points. I have 20 coordinates i dont no where to put them/
enforcer021 is offline
ichthys
Veteran Member
Join Date: Dec 2004
Location: []*[]
Old 06-17-2005 , 17:54  
#4

Untested but should work.
player_spawn.cfg
Quote:
setinfo rand_spawn 0
es_rand rand_spawn 1 server_var(spawn_point_count)
setinfo pointX 0
es_format pointX "spawn%1x" server_var(rand_spawn)
setinfo pointY 0
es_format pointY "spawn%1y" server_var(rand_spawn)
setinfo pointZ 0
es_format pointZ "spawn%1z" server_var(rand_spawn)
setinfo nm_userid 0
es_format nm_userid "#%1" event_var(userid)
es nm_teleport server_var(nm_userid) server_var(server_var(pointX)) server_var(server_var(pointY)) server_var(server_var(pointZ))
es_tell event_var(userid) You have been teleported to: server_var(server_var(pointX)) server_var(server_var(pointY)) server_var(server_var(pointZ))
mapname.cfg //create this for each map
Quote:
//adjust in each config file for how many spawn points you have
setinfo spawn_point_count 2
//1st spawn point x,y and z coordinates
setinfo spawn1x 323
setinfo spawn1y 123
setinfo spawn1z 131

//point 2 and so on.
setinfo spawn2x 312
setinfo spawn2y 2321
setinfo spawn3z 123123
__________________
ichthys is offline
 


Thread Tools
Display Modes

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 04:54.


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