Raised This Month: $ Target: $400
 0% 

Speed + Gravity


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Cirovic
Senior Member
Join Date: Sep 2019
Old 04-20-2020 , 10:51   Speed + Gravity
Reply With Quote #1

I need plugin that when players join server they wil have 325 Speed and 575 gravity
Cirovic is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-20-2020 , 13:46   Re: Speed + Gravity
Reply With Quote #2

Code:
#include <amxmodx> #include <fun> #include <hamsandwich> #if !defined Ham_CS_Player_ResetMaxSpeed const Ham:Ham_CS_Player_ResetMaxSpeed = Ham_Item_PreFrame #endif const Float:PLAYER_SPEED = 325.0 const Float:PLAYER_GRAVITY = 575.0 const DEFAULT_GRAVITY = 800 public plugin_init() {     register_plugin("Speed + Gravity", "1.0", "OciXCrom")     RegisterHam(Ham_CS_Player_ResetMaxSpeed, "player", "OnChangeSpeed", 1)     RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1) } public OnChangeSpeed(id) {     set_user_maxspeed(id, PLAYER_SPEED) } public OnPlayerSpawn(id) {     if(is_user_alive(id))     {         set_user_gravity(id, PLAYER_GRAVITY / DEFAULT_GRAVITY)     } }
__________________

Last edited by OciXCrom; 04-20-2020 at 13:59.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Cirovic
Senior Member
Join Date: Sep 2019
Old 04-20-2020 , 14:56   Re: Speed + Gravity
Reply With Quote #3

ty could u make plugin for me when CT player spawns he get USP ?
Cirovic is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-20-2020 , 15:40   Re: Speed + Gravity
Reply With Quote #4

Code:
#include <amxmodx> #include <cstrike> #include <fun> #include <hamsandwich> public plugin_init() {     register_plugin("USP on Spawn", "1.0", "OciXCrom")     RegisterHam(Ham_Spawn, "player", "OnPlayerSpawn", 1) } public OnPlayerSpawn(id) {     if(is_user_alive(id) && cs_get_user_team(id) == CS_TEAM_CT)     {         give_item(id, "weapon_usp")         cs_set_user_bpammo(id, CSW_USP, 100)     } }
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Cirovic
Senior Member
Join Date: Sep 2019
Old 04-20-2020 , 17:07   Re: Speed + Gravity
Reply With Quote #5

Nice ocixcrom my server thanks you, can you please answer to your pm please i really need help with this one..
Cirovic is offline
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 09:47.


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