About A Plugin That Compiled Successfully but Doesn't Work
Hi, I have made a simple plugin which gives ammo packs to players who use the valid nicknames that I wrote when they connect server. As I said in the title, it compiled without any errors. I also tried it with the forward "client_putinserver()" but still same. What's wrong with this?
Code:
#include <amxmodx> |
Re: A Plugin That Compiles Successful but Doesn't Work
There is nothing strange in a compiled plugin that doesn't work. If everything is written as it should for the computer to read, it doesn't mean the in-game logic is correct as well.
client_connect is called when the player is still connecting, so he can't possibly see the chat message. Try using client_putinserver and/or a 1-2 seconds task to delay the function. |
Re: About A Plugin That Compiled Successfully but Doesn't Work
Quote:
Shortly before, changed the if queries as if(is_user_connected(ID) && equali(Get_Player_Name, "Alex")) else if(is_user_connected(ID) && equali(Get_Player_Name, "Kevin")) with using the forward "client_connect()" but still same. I'll try to use set_task when I have time to look at this problem. |
Re: About A Plugin That Compiled Successfully but Doesn't Work
There's no point in checking if the user is connected in those forwards. If they were called, the user is 100% connected.
|
Re: About A Plugin That Compiled Successfully but Doesn't Work
How do you expect to give ammo to a player that isn't 1) on a team and 2) alive? Is there something strange about ZombiePlague that makes it actually work that way?
|
Re: About A Plugin That Compiled Successfully but Doesn't Work
Quote:
|
Re: About A Plugin That Compiled Successfully but Doesn't Work
The problem can be in the check of the name, for example create a const with the steamids, and check the putin server if get_user_authid is equal to const [i], it is not difficult and it is a better method ...
|
Re: About A Plugin That Compiled Successfully but Doesn't Work
The best way probably would be in client_authorized instead of client_connect or client_putinserver.
|
Re: About A Plugin That Compiled Successfully but Doesn't Work
Code:
#include < amxmodx > |
| All times are GMT -4. The time now is 07:36. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.