I have my plugin which is
Code:
//---------------------------------------------------------------------------------------------------------------------------
/*UnStick : For KZ Maps
* By Dizzy
*
*
*
* CVARS unstick
* 0/1
*
* Client Commands
* /unstick
*
*
* Description:
* Puts No Clip On Client For 2 Seconds For The Client To Get Out of being stuck in
* a checkpoint Teleport
*
*
* Made For KZ Maps
*
*
*/
//---------------------------------------------------------------------------------------------------------------------------
#include <amxmodx>
#include <fun>
#include <engine>
//---------------------------------------------------------------------------------------------------------------------------
new bool:isusingunstick = false
new bool:canuseunstick = true
//---------------------------------------------------------------------------------------------------------------------------
public plugin_init() {
register_plugin("UnStick","1.0","Dizzy")
register_cvar("unstick","1")
register_cvar("unstick_cooldown","60")
register_cvar("unstick_cliptime","2")
register_clcmd("/unstick","unstick")
register_event("ResetHUD","reset","b")
}
//---------------------------------------------------------------------------------------------------------------------------
public client_connect(id) {
isusingunstick = false
canuseunstick = true
}
public reset(id) {
canuseunstick = true
isusingunstick = false
//---------------------------------------------------------------------------------------------------------------------------
public unstick(id) {
if(!canuseunstick) {
client_print(id, print_chat,"Sorry, you have just recently used unstick please wait until you can again")
}
if(canuseunstick) {
set_user_noclip(id, 1)
set_task(get_cvar_float("unstick_cliptime"),"disable")
}
return PLUGIN_CONTINUE
}
//---------------------------------------------------------------------------------------------------------------------------
public disable(id) {
set_user_noclip(id)
canuseunstick = false
set_task(get_cvar_float("unstick_cooldown"),"reenable")
}
public reenable(id) {
canuseunstick = true
}
What it does is it give someone no clip for 2 seconds to get out of an area if there stuck like in a false kz_teleport.
You can use it once every 60 seconds!
And I get errors!
here they are
unstick.sma<54> : warning 217: loose indentation
unstick.sma<54> : error 029: incalid expression, assumed zero
unstick.sma<54> : error 017: undefined symbol "unstick"
unstick.sma<66> : error 017: undefined symbol "disable"
unstick.sma<71> : error 029: invalid expression, assumed zero
unstick.sma<71> : error 017: undefined symbol "reenable"
unstick.sma<73> : error 001: expected token: ">", but found "-end of file-"
Can anyone do this / help?! Thanks Please Re-post!
__________________