// ---------------------------------------------------------------------------
// ClanMod 1.82b1 Config Pack v1.82b1 [18 February, 2004]
// ---------------------------------------------------------------------------
// This file is part of ClanMod (See README for more information).
// Copyright 2002 - 2004 UnitedAdmins (www.unitedadmins.com)
// Project originally created by OLO (http://olo.counter-strike.pl)
// ---------------------------------------------------------------------------
// Please read the manual carefully before altering this file!
// The Manual is located at docs.unitedadmins.com
// ---------------------------------------------------------------------------

cm_log "[CLANMOD] Loading Stuck script (&cm_configpath&/configs/scripts/addon_Stuck.cfg)"

//cm_addcvar cm_addon_stuck 1
cm_addcvar addon_stuck_temp 1
cm_addcvar addon_stuck_temp1 1

cm_alias "/stuckme" "addon_stuck_moveplayer_check;addon_stuck_temp &name&" asb
cm_alias "/stuck" "addon_stuck_moveplayer_check;addon_stuck_temp &name&;addon_stuck_temp1 &id&" asb
cm_alias "stuck" "cm_say @&id& If you are stuck, just say /stuck" aspb
cm_alias "Stuck" "cm_say @&id& If you are stuck, just say /stuck" aspb

alias addon_stuck_moveplayer_check "cm_if cm_addon_stuck == 1 then addon_stuck_moveplayer"
cm_command addon_stuck_moveplayer "cm_task 1 'cm_moveplayer &addon_stuck_temp1& 00 00 50 p' snr 'Moving player &addon_stuck_temp&'"

cm_consgreet "If you get stuck just say '/stuck' and the server will move you"
cm_motd "AMX MOD X By eKo" 200100000 5.00
