Raised This Month: $32 Target: $400
 8% 

NBA Jam v0.4


Post New Thread Reply   
 
Thread Tools Display Modes
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 06-05-2013 , 10:25   Re: NBA Jam v0.4
Reply With Quote #11

Video back
__________________
mabaclu is offline
ekawibisono
Junior Member
Join Date: Jan 2013
Old 06-08-2013 , 03:34   Re: NBA Jam v0.4
Reply With Quote #12

why can not create /ball
Help Me Please
ekawibisono is offline
mabaclu
Senior Member
Join Date: Jun 2010
Location: Portugal
Old 06-13-2013 , 05:39   Re: NBA Jam v0.4
Reply With Quote #13

You need admin rights to use /ball. Then face the floor and create the ball.
__________________
mabaclu is offline
ekawibisono
Junior Member
Join Date: Jan 2013
Old 06-13-2013 , 08:46   Re: NBA Jam v0.4
Reply With Quote #14

Quote:
Originally Posted by mabaclu View Post
You need admin rights to use /ball. Then face the floor and create the ball.
Thanks .... This Server Me Is Running....Thanks
__________________
I M Is Simple
ekawibisono is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 09-27-2015 , 13:36   Re: NBA Jam v0.4
Reply With Quote #15

1.Don't use PlayerPreThink, you have better ways here:
  • For speed, hook Ham_Item_PreFrame and do your stuff. Also you won't need CurWeapon any longer.
  • For bhop, hook Ham_Player_Jump.

2.Use new file natives.
3.Use charsmax() to get a string size, don't hardcode it.
4.Do not create variables inside a loop.
5.Check if iFile pointer is valid before doing anything(> 0).
6.for (new i; i <= get_maxplayers(); i++) don't loop players like this, use get_players. It will give an array with fully valid players.
7.Switch with only one case is silly.
8.strtolower( g_szMapname ) is not needed.
9.static on global variables is not needed here. It means that the variable is in the scope of the current file, but since you work with only one file new is perfectly fine.

That's at the most fastest glance possible. Unapproved for now, because sections needs to be cleaned. You can PM me when you made this few changes so we can go in deep and explore all the functions.
__________________
HamletEagle is offline
Reply


Thread Tools
Display Modes

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 03:22.


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