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

Hide N Seek Training


Post New Thread Reply   
 
Thread Tools Display Modes
prabalgarina
Senior Member
Join Date: Mar 2009
Old 03-17-2009 , 15:38   Re: Hide N Seek Training
Reply With Quote #21

I like you'r plugin.
Hope there are no bugs and get approve.
prabalgarina is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 03-17-2009 , 16:40   Re: Hide N Seek Training
Reply With Quote #22

Quote:
Originally Posted by prabalgarina View Post
I like you'r plugin.
Hope there are no bugs and get approve.
Thanks ;)
zacky is offline
Send a message via Skype™ to zacky
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-17-2009 , 22:28   Re: Hide N Seek Training
Reply With Quote #23

Hi.

Some suggestions :

- Use pcvars. You must do it.
- fwStartFrame() : Use static for vars which are not yet. Rearranging the function would not a bad idea. ( Like Nextra )
- check_pistols() : not used ?
- Spawn : avoid to use spawn() native. Use Ham_CS_RoundRespawn.
- Get rid of engine module since you're using fakemeta. entity_[get|set]_*() = pev() ; and EV_*_* = pev_ . Not hard.
- Use TE_TELEPORT instead of 11.
- Using ML ?

Too much to say. I stop there for the moment.
Arkshine is offline
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 03-18-2009 , 03:27   Re: Hide N Seek Training
Reply With Quote #24

Quote:
Originally Posted by arkshine View Post
Hi.

Some suggestions :

- Use pcvars. You must do it.
- fwStartFrame() : Use static for vars which are not yet. Rearranging the function would not a bad idea. ( Like Nextra )
- check_pistols() : not used ?
- Spawn : avoid to use spawn() native. Use Ham_CS_RoundRespawn.
- Get rid of engine module since you're using fakemeta. entity_[get|set]_*() = pev() ; and EV_*_* = pev_ . Not hard.
- Use TE_TELEPORT instead of 11.
- Using ML ?

Too much to say. I stop there for the moment.
My turn:

Change this:

PHP Code:
        give_item(id"weapon_m3");
        
give_item(id"weapon_xm1014");
        
give_item(id"weapon_mp5navy");    
        
give_item(id"weapon_p90");
        
give_item(id"weapon_mac10");
        
give_item(id"weapon_tmp");
        ...
        
give_item(id"weapon_scout");
        
give_item(id"weapon_awp");
        
give_item(id"weapon_sg550");
        
give_item(id"weapon_g3sg1");
        
give_item(id"weapon_m249");
        
give_item(id"weapon_elite");
        
give_item(id"weapon_fiveseven");
        
give_item(id"weapon_usp");
        
give_item(id"weapon_glock18");
        
give_item(id"weapon_deagle");
        
give_item(id"weapon_p90"); 
To
PHP Code:
ALL_WEAPONS[][] = {"weapon_m3","weapon_xm1014" ...

...

const 
sizeOfAllWeapons sizeof ALL_WEAPONS;

for(new 
i=0;i<sizeOfAllWeapons;i++)
    
give_item(id,ALL_WEAPONS[i]); 
Everywhere.

Change this:

PHP Code:
new Data[6];
new 
Access;
new 
Callback;
new 
Name[64];
menu_item_getinfo(mWeaponMenuitemAccessData5Name63Callback); 
to this:

PHP Code:
new Data[2];
new 
Access;
new 
Callback;
menu_item_getinfo(mWeaponMenuitemAccessData1__Callback); 
Everywhere.

This:
PHP Code:
for(new 033a++) { 
To:

PHP Code:
for(new 133a++) { 
This:

PHP Code:
stock move_to_check(id) {
        new 
vel[3]={0,0,0};
        
kz_velocity_set(id,vel);
...

stock kz_velocity_set(id,vel[3]) {
    
//Set Their Velocity to 0 so that they they fall straight down from
    
new Float:Ivel[3];
    
Ivel[0]=float(vel[0]);
    
Ivel[1]=float(vel[1]);
    
Ivel[2]=float(vel[2]);
    
entity_set_vector(idEV_VEC_velocityIvel);

PHP Code:
move_to_check(id) {
        
kz_velocity_set(id,{0.0,0.0,0.0});
...

kz_velocity_set(id,Float:vel[3]) {
        
//Set Their Velocity to 0 so that they they fall straight down from
        
entity_set_vector(idEV_VEC_velocityvel);

You are not using:
PHP Code:
stock kz_velocity_get(id,vel[3]) { 
You are declaring functions as stocks pointlessly.

PHP Code:
new dist 9999
PHP Code:
new dist 
You are not using the function: check_pistols what makes

PHP Code:
 if ( !g_PistolsDisabled 
useless


and its better for you because:

PHP Code:
public check_pistols()
{
    
/* Determine if we should give players a pistol or not */
    
if ( get_cvar_num("sv_checkpistols") )
    {
        
set_task(1.0"check_pistols"); 
Would be a infinite loop.

Check if you can replace your semi-clip code by this:

http://forums.alliedmods.net/showthread.php?t=87690

Declare the constants that you use, in the beginning of the code. (33,96)

Probably there is a better way to check if the user has a weapon but anyway, this:

PHP Code:
for (new 0;number;i++)
{
    if (
wpnList[i] == CSW_GLOCK18)
        
foundGlock true;
    if (
wpnList[i] == CSW_USP)
        
foundUSP true;

Should be:

PHP Code:
for (new 0;number;i++)
{
    new 
weapon wpnList[i]

    if (
weapon == CSW_GLOCK18)
    {
        
foundGlock true;
        break;
    }
    else if(
weapon == CSW_USP)
    {    
        
foundUSP true;
        break;
    }

__________________

Last edited by joaquimandrade; 03-18-2009 at 04:15.
joaquimandrade is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 03-18-2009 , 09:43   Re: Hide N Seek Training
Reply With Quote #25

PHP Code:
public CheckCheckpoint(id) {
    
// Check if they can respawn
    
new origin[33][3];
    new 
dist 9999;
    for(new 
033a++) {
        if (
is_user_connected(a)) {
            
get_user_origin(a,origin[a]);
            
dist get_distance(origin[a],gCheckpointPos[id]);
        }
    }
    return 
true;

This does absolutely nothing but return true. What is the point of it?
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
prabalgarina
Senior Member
Join Date: Mar 2009
Old 03-18-2009 , 10:32   Re: Hide N Seek Training
Reply With Quote #26

Quote:
This plugin has 2 warnings, but it works fine anyway.
You can delete this.. because you say you fixed the 2 warnings ... and give some credits to joaquimandrade and YamiKaitou for helping you (this is not a order.. )


prabalgarina is offline
renato127
Member
Join Date: Jan 2009
Location: Brazil, Rio de Janeiro
Old 03-18-2009 , 18:35   Re: Hide N Seek Training
Reply With Quote #27

The plugin is blocking say commands....
renato127 is offline
zacky
Senior Member
Join Date: Mar 2008
Location: Sweden
Old 03-19-2009 , 06:50   Re: Hide N Seek Training
Reply With Quote #28

Quote:
Originally Posted by renato127 View Post
The plugin is blocking say commands....
Not for me
zacky is offline
Send a message via Skype™ to zacky
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-19-2009 , 07:29   Re: Hide N Seek Training
Reply With Quote #29

Your code blocks say command. Return CONTINUE at the end and HANDLED after spawn_func().
Arkshine is offline
kriixn
Member
Join Date: Mar 2009
Old 03-21-2009 , 10:56   Re: Hide N Seek Training
Reply With Quote #30

Very good plugin i will test it
kriixn 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 00:33.


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