AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   CSDM error and EVENTS (https://forums.alliedmods.net/showthread.php?t=48945)

Troi 12-23-2006 19:05

CSDM error and EVENTS
 
Can anyone tell where can I find all of events?
resgister_event("EVENT", " ..................)

============================================= ===========

Ive got NATIVE CSDM_RESPAWN error... HOW to fix it?? in HLDS window :cry:


L 12/24/2006 - 01:20:13: [CSDM] Player 0 is not valid
L 12/24/2006 - 01:20:13: [AMXX] Displaying debug trace (plugin "training_cs.amxx")
L 12/24/2006 - 01:20:13: [AMXX] Run time error 10: native error (native "csdm_respawn")
L 12/24/2006 - 01:20:13: [AMXX] [0] training_cs.sma::respawn (line 22)


code:
PHP Code:

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#include <csdm>
#include <cstrike>

#define PLUGIN "Trainig"
#define VERSION "1.0"
#define AUTHOR "S!lent"

public plugin_init() {
 
register_plugin(PLUGINVERSIONAUTHOR)
 
register_event("DeathMsg""respawn""a")
}
public 
respawn(idplayer)
{
 if (!
is_user_alive(id))
 {
  
csdm_respawn(player)
  
cs_set_user_money(id10000)
 }
 
 return 
PLUGIN_CONTINUE



Troi 12-23-2006 20:14

Re: CSDM error and EVENTS
 
Well write everyone .. who knows :) I know:

"DeathMsg" - event when player dies..

The Specialist 12-23-2006 20:33

Re: CSDM error and EVENTS
 
search

Troi 12-23-2006 20:59

Re: CSDM error and EVENTS
 
Where I sould search? ....... :o :| What about an error?

jim_yang 12-23-2006 23:33

Re: CSDM error and EVENTS
 
if you use module csdm, it atuomaticlly respawns a dead player, you don't need to do any respawn thing. if you want to set the money when respawn, just use this:

public csdm_PostSpawn(player, bool:fake)
{
cs_set_user_money(player, 10000)
return PLUGIN_CONTINUE
}

Troi 12-24-2006 05:45

Re: CSDM error and EVENTS
 
No no..... I need only respawn... ONLY that.. No menus no weapons.... And normal CSDM is not working with bots for me... :cry: So I want that, when you die, automaticlly spawn again, buy weapons and go....

jim_yang 12-24-2006 06:41

Re: CSDM error and EVENTS
 
disable all csdm plugins just use the csdm module, then no menus and weapons.


All times are GMT -4. The time now is 22:26.

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