AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   amx_jesus (https://forums.alliedmods.net/showthread.php?t=17233)

[KTA] KeItO 08-27-2005 23:19

amx_jesus
 
Hey, here is waht I have so far.

Code:
#include <amxmodx> #include <fun> public plugin_init() (     register_plugin("Amx-Jesus","0.1","KeItO")     register_concmd("amx_jesus","set_user_health""set_user_footsteps""set_user_gravity",ADMIN_BAN," user Is turned into jesus") )

I need to know how to make it so when you type amx_jesus (id) it will do all those to a user??

Im really new to codeing. I need a mentor. lol

Hawk552 08-27-2005 23:28

Code:
#include <amxmodx> #include <fun> #include <amxmisc> public plugin_init() {     register_plugin("Amx-Jesus","0.1","KeItO")     register_concmd("amx_jesus","jesus",ADMIN_BAN," <name> - user is turned into Jesus") } public jesus(id,level,cid) {     if(!cmd_access(id,level,cid,2))     {         return PLUGIN_HANDLED     }           new arg[32]     read_argv(1,arg,31)     new player = cmd_target(id,arg,1)         if (!player)     {         return PLUGIN_HANDLED     }         set_user_health(player,99999)     set_user_footsteps(player,0)     set_user_gravity(player,0.2)         new name[32]     get_user_name(player,name,31)     client_print(0,print_chat,"[AMXX] %s is now Jesus",name)         return PLUGIN_HANDLED }

Something like that?

[KTA] KeItO 08-27-2005 23:31

Your my hero. I love you. Ill add you to my helper list. LoL do you have aim??

v3x 08-28-2005 00:23

I do ;]


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

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