5 posts,
3 people · 832 views
Thread Rating: ★★★★★
| closedEvent |
| Started by h0_noMan on 12-19-2007, 04:13 PM |
H
h0_noMan
Threads: 11
Joined: Dec 2007
started this thread
Posts: 80Threads: 11
Joined: Dec 2007
12-19-2007, 04:13 PM
#1
Hi all.rnrnBefore starting i wanna apologyze for my mistakes, i am French.rnrnI am a beginner in DoD Scripting.rnI have started a plugin : Checkpoint for KZ or stunt map.rnrnI wanna know what event is activated when a player join (or leave).rnrnThanks.
H
h0_noMan
Threads: 11
Joined: Dec 2007
started this thread
Posts: 80Threads: 11
Joined: Dec 2007
12-19-2007, 06:32 PM
#2
I found it alone :rnrn
register_event("TextMsg","function","a","1=3","2=#game_joined_team")posted here
Posts: 2,068Threads: 103
Joined: May 2005
12-19-2007, 10:03 PM
#3
if you want to have seperate ones for each team use something like:nn
register_event("TextMsg","join_axis_function","a","1=3","2=#game_joined_team","4=Axis") //joined axisnregister_event("TextMsg","join_allies_function","a","1=3","2=#game_joined_team","4=Allies") //joined alliesnregister_event("TextMsg","join_spec_function","a","1=3","2=#game_joined_team","4=Spectators") //joined specposted here
Posts: 623Threads: 57
Joined: Oct 2005
12-20-2007, 01:24 AM
#4
Hi all.rnI wanna know what event is activated when a player join (or leave).rnrnrnJoin/Leave, not join team.rnrnh0_noMan,rnrnGo to amxmodx/scripting/includes and open amxmodx.incrnYou will see a bunch of forwards in there. A few lines down, you will see:rnrnclient_connect(id)rnclient_disconnect(id)rnrnThose are called when clients join/leave.rnFor example,rnrn
rnpublic client_connect(id) {rn log_amx( "Client %i joined the server", id )rn}rnrnpublic client_disconnect(id) {rn log_amx( "Client %i left the server", id )rn}rn
H
h0_noMan
Threads: 11
Joined: Dec 2007
started this thread
Posts: 80Threads: 11
Joined: Dec 2007
12-20-2007, 04:34 AM
#5
Thanks to you 2.

