Raised This Month: $ Target: $400
 0% 

Solved Ham_Spawn Issue


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-04-2017 , 14:01   Ham_Spawn Issue
Reply With Quote #1

Hello. I have an issue with Ham_Spawn. It works only on respawn,on the first player spawn counted from when the player conencted to the server Ham_Spawn is ignored. Anything I can do to fix it? Why would it only work on respawns, if there is also Ham_Respawn ? Thanks!

Last edited by DarthMan; 04-10-2017 at 16:15. Reason: Solved
DarthMan is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-04-2017 , 15:04   Re: Ham_Spawn Issue
Reply With Quote #2

I personally hated this issue because I had problems with VIP multi jump, it only worked after first round. I put 'sv_restartround 1' in server.cfg and it solved my issue.
__________________
edon1337 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-04-2017 , 15:28   Re: Ham_Spawn Issue
Reply With Quote #3

Quote:
Originally Posted by edon1337 View Post
I personally hated this issue because I had problems with VIP multi jump, it only worked after first round. I put 'sv_restartround 1' in server.cfg and it solved my issue.
I am not doing this for CS, sv_restartround is for CS.
DarthMan is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-04-2017 , 15:20   Re: Ham_Spawn Issue
Reply With Quote #4

You will need task on spawn.
Give me code for spawn.

Last edited by Krtola; 04-04-2017 at 15:20.
Krtola is offline
Send a message via Skype™ to Krtola
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-04-2017 , 15:26   Re: Ham_Spawn Issue
Reply With Quote #5

Quote:
Originally Posted by Krtola View Post
You will need task on spawn.
Give me code for spawn.
That's how I registered the ham RegisterHam(Ham_Spawn, "player", "fwHamPlayerSpawnPost", 1);

Works fine on respawn.
DarthMan is offline
Krtola
Veteran Member
Join Date: Oct 2013
Location: Serbia
Old 04-04-2017 , 15:34   Re: Ham_Spawn Issue
Reply With Quote #6

give me code
PHP Code:
public fwHamPlayerSpawnPost(id
Krtola is offline
Send a message via Skype™ to Krtola
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-04-2017 , 15:44   Re: Ham_Spawn Issue
Reply With Quote #7

Quote:
Originally Posted by Krtola View Post
give me code
PHP Code:
public fwHamPlayerSpawnPost(id
I sent a PM, add me on Skype if you can
DarthMan is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 04-04-2017 , 15:54   Re: Ham_Spawn Issue
Reply With Quote #8

The help you will receive is directly proportional with the information you gave in your post.. 0
__________________

Last edited by Depresie; 04-04-2017 at 15:55.
Depresie is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-04-2017 , 15:57   Re: Ham_Spawn Issue
Reply With Quote #9

Quote:
Originally Posted by Depresie View Post
The help you will receive is directly proportional with the information you gave in your post.. 0
Well, it's some thing that I don't rly want to share with everyone, becuz then everyone will be able to do it by just copy/paste. I've been told many tiems to post my whole plug-ins for help related to only 1 thing of the plugin, I had to psot the whole plug-in and imagine if i would have to share my whole plug-in everyone would be able to use it, which I don't want to happen, because it's part of MAX Functions only for my servers.
DarthMan is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 04-04-2017 , 16:06   Re: Ham_Spawn Issue
Reply With Quote #10

Quote:
Originally Posted by Depresie View Post
The help you will receive is directly proportional with the information you gave in your post.. 0
Here's a code that I use on HL1 on a map. It works only on respawn sadly.

Code:
public player_spawn(id)
{
	if(!is_user_alive(id)) return HAM_IGNORED;
	
	strip_user_weapons(id)
	give_item(id, "weapon_crowbar")
	give_item(id,"item_longjump")
	set_user_armor(id, 100)
	set_user_godmode(id, 1);
	return HAM_IGNORED;
}

Last edited by DarthMan; 04-04-2017 at 16:07.
DarthMan is offline
Reply



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


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