Problems with Random player
Hi. When i use random player code (from tutorial && testing with PodBot)
And any other code (in this example giving weapon) It always gives weapon not for 1 player, but for all. Code:
#include <amxmodx> |
Re: Problems with Random player
I'm lazy to read all of your code but remember to not using stocks to give items to players. Use give_item( ) from Fun module instead.
|
Re: Problems with Random player
Ok, changed code. (same random player problem)
|
Re: Problems with Random player
maybe checking if the user is alive.
|
Re: Problems with Random player
|
Re: Problems with Random player
Quote:
|
Re: Problems with Random player
Why you give a weapon to random player whenever any player spawns..
|
Re: Problems with Random player
I too question why you give random players weapons only when a person spawns.
Your code was giving an m4 to id0, which would not work anyhow, but to be safe I threw a check in there. I also threw a check in there to make sure the person is alive. Test this code, but honestly not sure if it will work, been years since I coded something like this in pawn. Code:
|
Re: Problems with Random player
Thanks guys, with your help, i made it work
Here is my final code (wepon giving is only example) Code:
#include <amxmodx> |
Re: Problems with Random player
You are welcome, but I don't even see how that code would work :S. you are setting a task, which is, I am assuming, passing 0 to the id of give_weapon. Weird
|
| All times are GMT -4. The time now is 03:38. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.