AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Solved Ham_Spawn Issue (https://forums.alliedmods.net/showthread.php?t=295786)

DarthMan 04-04-2017 14:01

Ham_Spawn Issue
 
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!

edon1337 04-04-2017 15:04

Re: Ham_Spawn Issue
 
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.

Krtola 04-04-2017 15:20

Re: Ham_Spawn Issue
 
You will need task on spawn.
Give me code for spawn.

DarthMan 04-04-2017 15:26

Re: Ham_Spawn Issue
 
Quote:

Originally Posted by Krtola (Post 2509355)
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 04-04-2017 15:28

Re: Ham_Spawn Issue
 
Quote:

Originally Posted by edon1337 (Post 2509348)
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.

Krtola 04-04-2017 15:34

Re: Ham_Spawn Issue
 
give me code
PHP Code:

public fwHamPlayerSpawnPost(id


DarthMan 04-04-2017 15:44

Re: Ham_Spawn Issue
 
Quote:

Originally Posted by Krtola (Post 2509361)
give me code
PHP Code:

public fwHamPlayerSpawnPost(id


I sent a PM, add me on Skype if you can :)

Depresie 04-04-2017 15:54

Re: Ham_Spawn Issue
 
The help you will receive is directly proportional with the information you gave in your post.. 0

DarthMan 04-04-2017 15:57

Re: Ham_Spawn Issue
 
Quote:

Originally Posted by Depresie (Post 2509368)
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 04-04-2017 16:06

Re: Ham_Spawn Issue
 
Quote:

Originally Posted by Depresie (Post 2509368)
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;
}



All times are GMT -4. The time now is 18:04.

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