help with roundstart
ok im working on a plugin, and i have it to set you to a model, and every new round the model is still that model from the plugin, and I want it to change back to the normal model at the start of the round.
So what do I need to add to make it work? What I want to do is to create a new round event so that I can check the users model at the start of the round, to see if it is that model still, and if it is, then to reset the model... How would I do this? Code:
That is my code...and also the second thing is, when i do the give_item(id, "ammo_556nato") it never gives the ammo for the m249...so how do i make this work?[/small] |
i would just hook when a user spawns and reset his model.
Code:
this hooks the ResetHUD message, which is most of the time called when a user spawns. it then sees if his current model is gorilla, and if so it resets it. one of the downfalls to using ResetHUD is that clients can call it whenever they want by typing "fullupdate" in console. that means someone could go gorilla and then reset his model so that no one would be able to tell. to counteract this, we hook the command and return PLUGIN_HANDLED to stop it from doing anything. also, try using "ammo_556natobox" as your ammo type. |
Thanks, but when I add these, it compiles and gives me erorrs now.
Code:
These are the errors: Welcome to the AMX Mod X 1.60-300 Compiler. Copyright (c) 1997-2005 ITB CompuPhase, AMX Mod X Team Error: Symbol already defined: "spawn" on line 57 Error: Symbol already defined: "cs_get_user_model" on line 59 Error: Invalid function or declaration on line 61 Warning: Symbol is never used: "model" on line 67 3 Errors. Could not locate output file C:\amx_gorilla.amx (compile failed). |
include cstrike
and spawn() is allready a func u gonna have to rename it to player_spawn or sumthin |
alright thanks, i changed it to player_spawn and player_spawn in the register_event and it compiled fine, thanks :), YAY IT WORKS, thanks guys :) you've been a big help
|
| All times are GMT -4. The time now is 20:13. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.