View Single Post
WaZZeR++
Veteran Member
Join Date: Mar 2005
Location: Sweden
Old 06-20-2005 , 14:18  
Reply With Quote #5

try this... tell me if it worked
Code:
#include <amxmodx> #include <amxmisc> #include <fun> public plugin_init() {     register_plugin("Longjump","1.0","WaZZeR")     register_concmd("amx_longjump","AdminLongjump",ADMIN_LEVEL_A,"<authid, nick, @team, @all or #userid>") } public plugin_precache() {     precache_model("models/w_longjump.mdl")     //longjump     precache_model("models/w_longjumpt.mdl")    //---"--- } public client_spawn(id)     give_item(id,"item_longjump")     //credits to AssKicR public AdminLongjump(id,level,cid) {     if ( !cmd_access(id,level,cid,1) )         return PLUGIN_HANDLED         new arg1[32]     read_argv(1,arg1,31)         if ( equali(arg1,"@all") )         {         new plist[32],pnum         get_players(plist,pnum,"a")         if (pnum==0)             {             console_print(id,"[AMXX] There are no clients")             return PLUGIN_HANDLED         }         for (new i=0; i<pnum; i++)         {             give_item(plist[i],"item_longjump")         }                 console_print(id,"[AMXX] Gave all players longjump")     }     else if ( arg1[0]=='@' )         {         new plist[32],pnum         get_players(plist,pnum,"ae",arg1[1])         if ( pnum==0 )             {             console_print(id,"[AMXX] No clients in such team")             return PLUGIN_HANDLED         }         for (new i=0; i<pnum; i++)         {             give_item(plist[i],"item_longjump")                     }         console_print(id,"[AMXX] Gave all %ss longjump",arg1[1])     }     else         {         new pName[32]         new player = cmd_target(id,arg1,6)         if (!player) return PLUGIN_HANDLED         give_item(player,"item_longjump")                 get_user_name(player,pName,31)         console_print(id,"[AMXX] Gave ^"%s^" longjump",pName)     }         return PLUGIN_HANDLED }
WaZZeR++ is offline
Send a message via MSN to WaZZeR++