Raised This Month: $ Target: $400
 0% 

Setting movement speed depending on class [Day of Defeat]


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 07-06-2007 , 00:42   Re: Setting movement speed depending on class [Day of Defeat]
Reply With Quote #2

Code:
public dod_client_spawn(id)
{
    new class = dod_get_user_class(id)
    if(class == 2||class == 3||class == 4||class == 12)
    {
        set_user_maxspeed(id, 650.0)
        return PLUGIN_HANDLED
    }else if(class == 6||class == 7||class == 8||class == 13||class == 15||class == 17||class == 18)
    {
        set_user_maxspeed(id, 550.0)
        return PLUGIN_HANDLED
    }
    return PLUGIN_HANDLED
}
that should get rid of the warnings. don't know if that will work though. gl.
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
 



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 21:32.


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