Raised This Month: $ Target: $400
 0% 

Request Longjump


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
belcebub
Junior Member
Join Date: Dec 2004
Location: Sweden
Old 05-17-2005 , 13:13   Request Longjump
Reply With Quote #1

Hello
I want a plugin that give all the players on the server the long jump
that exist in Half-Life
If someone can make it i would be very happy
belcebub is offline
Proach
Veteran Member
Join Date: Jan 2005
Location: The Netherlands
Old 05-17-2005 , 14:29  
Reply With Quote #2

eehm

I remeber twistedeurophia made a plugin "like" this one a time ago

it s called doublestep or so.. just in unreal tournament

maybe tihs is wat you are lookin for?
__________________

www.psmod.net (the better psychostats)
PAOL
Proach is offline
Send a message via ICQ to Proach
twistedeuphoria
Veteran Member
Join Date: Jul 2004
Old 05-17-2005 , 14:42  
Reply With Quote #3

No, it's not the same. CSDM has the longjump pickup I think so somebody could rip it out of there.
__________________
twistedeuphoria is offline
dq
Junior Member
Join Date: May 2005
Location: Minnesota
Old 06-20-2005 , 13:50  
Reply With Quote #4

rune mod also has a long jump. It even has a specific plugin for it, but it needs basecontrol, as it is now.
__________________
=Deathmatch Server=
205.234.149.79:27015
dq is offline
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++
Noizza
Senior Member
Join Date: Apr 2004
Location: Vienna (PROUD)
Old 06-20-2005 , 16:10  
Reply With Quote #6

hmmm...
sounds cool... but 4 my needs it should be a clcmd working 4 the player who user it for only ONE round... and should cost money like 3000 ;)
if you change this, I test it 4 you ;)
__________________
Quote:
Originally Posted by Johnny got his gun
Read the plugin posting rules. They apply to everyone, including you.
kk...
#include <noizza>
lol

try my Server!
193.53.80.122:27016 Super-Fun Server [SHmod+DM]
Noizza is offline
Send a message via ICQ to Noizza
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-20-2005 , 17:01  
Reply With Quote #7

Didnt test but should work
Code:
#include <amxmodx> #include <amxmisc> #include <cstrike> #include <fun> new g_PlayerHasJump[33] public plugin_init() {     register_plugin("Longjump","1.0","WaZZeR")     register_clcmd("buy_jump","GiveLongJump",0,"Buy Long Jump")     register_cvar("amx_longjump_cost","1500")     register_event("DeathMsg","TakeJump","b")     //take below out and one more thing     register_event("ResetHUD","KeepJump","b") } public plugin_precache() {     precache_model("models/w_longjump.mdl") //longjump     precache_model("models/w_longjumpt.mdl")    //---"--- } public client_connect(id) {     g_PlayerHasJump[id] = 0     return PLUGIN_HANDLED } public client_disconnect(id) {     g_PlayerHasJump[id] = 0     return PLUGIN_HANDLED } public TakeJump() {     new id = read_data(2)     g_PlayerHasJump[id] = 0     return PLUGIN_HANDLED } //This whole function can go then too. public KeepJump() {     for(new i = 1; i <= get_maxplayers(); i++)     {         if(!is_user_connected(i))             return PLUGIN_HANDLED         if(g_PlayerHasJump[i])             give_item(i,"item_longjump")     }     return PLUGIN_HANDLED } public GiveLongJump(id) {     if(!is_user_alive(id))     {         client_print(id,print_chat,"[AMX] Dead men can't jump so neither do you.")         return PLUGIN_HANDLED     }         new money,cost     money = cs_get_user_money(id)     cost = get_cvar_num("amx_longjump_cost")     if( money < cost)     {         client_print(id,print_chat,"[AMX] You do not have enough money. Need %d",cost)     }     new name[35]     get_user_name(id,name,34)     client_print(0,print_chat,"[AMX] %s has bought Long Jump",name)     g_PlayerHasJump[id] = 1     give_item(id,"item_longjump")     cs_set_user_money(id,(money - cost),1)     return PLUGIN_HANDLED }
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Noizza
Senior Member
Join Date: Apr 2004
Location: Vienna (PROUD)
Old 06-20-2005 , 20:03  
Reply With Quote #8

doesn´t work...
line 40 was an error becaus of
if(g_PlayerHasjump[i])
should be
if(g_PlayerHasJump[i])

but the a few more error came and i cant fix it ;)

longjump.sma(55) : error 017: undefined symbol "cs_get_user_money"
longjump.sma(62) : error 017: undefined symbol "cs_get_user_name"
longjump.sma(67) : error 017: undefined symbol "cs_set_user_money"

plz help ;)
__________________
Quote:
Originally Posted by Johnny got his gun
Read the plugin posting rules. They apply to everyone, including you.
kk...
#include <noizza>
lol

try my Server!
193.53.80.122:27016 Super-Fun Server [SHmod+DM]
Noizza is offline
Send a message via ICQ to Noizza
Xanimos
Veteran Member
Join Date: Apr 2005
Location: Florida
Old 06-20-2005 , 20:40  
Reply With Quote #9

Ooopssss dumb me for got the cstrike include but this gives it to them the next round too it not only for one round. ill edit my post above so get it and take out the part that it tell you too in comments if you just want it for one round.
Xanimos is offline
Send a message via AIM to Xanimos Send a message via MSN to Xanimos
Noizza
Senior Member
Join Date: Apr 2004
Location: Vienna (PROUD)
Old 06-20-2005 , 21:21  
Reply With Quote #10

hmmm... i did it like that:
Code:
#include <amxmodx>
#include <amxmisc>
#include <cstrike>
#include <fun>

new g_PlayerHasJump[33]

public plugin_init() {
    register_plugin("Longjump","1.0","WaZZeR")
    register_clcmd("buy_jump","GiveLongJump",0,"Buy Long Jump")
    register_cvar("amx_longjump_cost","1500")

}

public plugin_precache()
{
    precache_model("models/w_longjump.mdl")    //longjump
    precache_model("models/w_longjumpt.mdl")    //---"---
}

public client_connect(id)
{
    g_PlayerHasJump[id] = 0
    return PLUGIN_HANDLED
}

public client_disconnect(id)
{
    g_PlayerHasJump[id] = 0
    return PLUGIN_HANDLED
}


public GiveLongJump(id)
{
    if(!is_user_alive(id))
    {
        client_print(id,print_chat,"[AMX] Dead men can't jump so neither do you.")
        return PLUGIN_HANDLED
    }
    
    new money,cost
    money = cs_get_user_money(id)
    cost = get_cvar_num("amx_longjump_cost")
    if( money < cost)
    {
        client_print(id,print_chat,"[AMX] You do not have enough money. Need %d",cost)
    }
    new name[35]
    cs_get_user_name(id,name,34)
    client_print(0,print_chat,"[AMX] %s has bought Long Jump",name)

    g_PlayerHasJump[id] = 1
    give_item(id,"item_longjump")
    cs_set_user_money(id,(money - cost),1)
    return PLUGIN_HANDLED
doesn work...
line 50: undefinied something cs_get_user_name
__________________
Quote:
Originally Posted by Johnny got his gun
Read the plugin posting rules. They apply to everyone, including you.
kk...
#include <noizza>
lol

try my Server!
193.53.80.122:27016 Super-Fun Server [SHmod+DM]
Noizza is offline
Send a message via ICQ to Noizza
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 23:33.


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