[Help] Weapon Chance
I've tried to make an Weapon Chance plugin, i get no error's but it doesnt give out items ingame.. :cry: Srry bad english. :)
[EDIT] It works with if you play without freezetime PHP Code:
|
Re: [Help] Weapon Chance
You should have an other switch :)
|
Re: [Help] Weapon Chance
Ok, think you could fix it? :) My first plugin so ^^
|
Re: [Help] Weapon Chance
I can't do it on this pc, sorry. :(
|
Re: [Help] Weapon Chance
No problem! Thanks for your help anyway! :)
|
Re: [Help] Weapon Chance
Try use ham, and register like:
RegisterHam( Ham_Spawn, "player", "fw_spawn" ) |
Re: [Help] Weapon Chance
Take a look at your switch statement, get_user_team can only return 3 values. Look at the func page I showed you. I am sorry to not give a proper response, I am writing from my phone. :crab: edit: Titan, that wont help at all, that will only hook when the player spawns. Round start works fine. The code is pretty okay, you could remove is_user_connected and just use alive, because if the dude is alive, then he's connected.
Damn, this looks awful. I am sorry. :mrgreen: |
Re: [Help] Weapon Chance
I can maybe help rewrite it a bit tomorrow :)
|
Re: [Help] Weapon Chance
Try this:
PHP Code:
|
Re: [Help] Weapon Chance
You added a useless bool and whitespace..?
|
| All times are GMT -4. The time now is 18:18. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.