AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Cant move with this plugin (https://forums.alliedmods.net/showthread.php?t=3241)

[cTs] Strake*ROC* 06-30-2004 21:46

Cant move with this plugin
 
Code:
/* AMX Mod script. * * (c) 2004, Strake * This file is provided as is (no warranties). */ #include <amxmodx> #include <amxmisc> #include <fun> public plugin_init(){     register_plugin("Ultimate Fun","1.0.0","Strake")     register_clcmd("amx_cheat", "cheat", ADMIN_MAP)     register_cvar("sv_admin_cheats", "1") } public cheat(id) { new target[32] read_argv(1,target,31) new player = cmd_target(id, target, 31) if (!player) return PLUGIN_HANDLED // DO NOT EDIT ABOVE THIS LINE // This is where the magic happens set_user_godmode(player, 1) set_user_maxspeed(player, 3.0) set_user_armor(player, float:500) set_user_health(player, float:500) set_user_footsteps(player, 0) return PLUGIN_HANDLED }

Making this plugin for a friend, but when i was testing, i couldnt move

Ryan 06-30-2004 22:05

Quote:

set_user_maxspeed(player, 3.0)
a maxspeed of 3.0 is REALLY slow... almost completely still.

knife speed is 260.0, so i suggest if you are trying to give this player super speed you use a value like 350.0 or so.[/quote]

Ryan 06-30-2004 22:06

also, what's the point of giving health/armor if the player is receiving godmode? :P

[cTs] Strake*ROC* 06-30-2004 22:10

I told myself that too, but if it is just godmode, then its a useless plugin :) i just added it to make it look cool :)


All times are GMT -4. The time now is 14:39.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.