revive plugin
hey. Im trying to make a revive plugin for cs. I got it to revive a player, but in order to do so you have to type their full name (case sensitive) Does anyone know a way to get around that?
here is my plugins code Code:
#include <amxmodx> |
Use cmd_target. Also, instead of spawn, use cs_user_spawn.
|
can u explain how to use cmd_target, i just started scripting yesterday so im pretty new to it. also i tried cs_user_spawn, it didn't work
|
cmd_target(id,Player,1)
spawn does not work if you use it only once, so you must be wrong. |
nah spawn works fine, but wat else do i need for the cmd_target, that it?
|
Quote:
|
is this what you mean? if so it doesnt work, it says that i have immunity (which i do) then says amx_revive isnt a command
Code:
#include <amxmodx> |
Cleaned up:
Code:
|
well it works, thank you so much, i dont really understand why though. the only change i see is that u changed ur variable names and made the string length 33, would that really have a difference?
|
Quote:
Also, I used cs_user_spawn which does work better if you're using CS. |
| All times are GMT -4. The time now is 16:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.