AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   HAMSANDWICH info_deathmatch_start (https://forums.alliedmods.net/showthread.php?t=88211)

AntiBots 03-21-2009 17:32

HAMSANDWICH info_deathmatch_start
 
Hi Friends, Why

RegisterHam(Ham_Spawn, "info_deathmatch_start")

Giveme a Warning Msg that Cant Found that ClassName in CS DLL?

Thanks.

ConnorMcLeod 03-21-2009 17:37

Re: HAMSANDWICH info_deathmatch_start
 
info_player_deathmatch (Ts)
info_player_start (CTs)

YoU CaN DiSaBlE ThE FoRwArD @ plugin_init ;)

AntiBots 03-21-2009 17:47

Re: HAMSANDWICH info_deathmatch_start
 
Yes. I know. But Why I can hook the Spawn in plugin_precache ?

ConnorMcLeod 03-21-2009 17:49

Re: HAMSANDWICH info_deathmatch_start
 
Because "info_deathmatch_start" doesn't exist ?
Make sure you have typed the correct name (the one in the first post is wrong)

This works for me :
PHP Code:

public plugin_precache()
{
    
RegisterHam(Ham_Spawn"info_player_deathmatch""SpawnPoint_Spawn")
    
RegisterHam(Ham_Spawn"info_player_start""SpawnPoint_Spawn")
}

public 
SpawnPoint_SpawniEnt )
{
    
server_print("New Spawn %d"iEnt)


Code:

New Spawn 56
New Spawn 57
New Spawn 58
New Spawn 59
New Spawn 60


Dores 03-21-2009 17:56

Re: HAMSANDWICH info_deathmatch_start
 
Quote:

Originally Posted by AntiBots (Post 786101)
Yes. I know. But Why I can hook the Spawn in plugin_precache ?

can or can't?

If can't - look at Connor's post.
If can - it's because map entities spawn at plugin_precache.

AntiBots 03-21-2009 17:59

Re: HAMSANDWICH info_deathmatch_start
 
Wow Sorry. It was my Error typing :D

Sorry.


All times are GMT -4. The time now is 09:02.

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