Raised This Month: $ Target: $400
 0% 

Subplugin Submission [ZP] Extra Item: Grenade Launcher


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
joaquimandrade
Veteran Member
Join Date: Dec 2008
Location: Portugal
Old 08-15-2009 , 02:56   Re: [ZP] Extra Item: Grenade Launcher
Reply With Quote #7

Quote:
Originally Posted by 5c0r-|3i0 View Post
PHP Code:
// New round started
public Event_NewRound(id)
{
    if (
g_restarted)
    {
        
// Strip from M79 if game have been restarted
        
for (new 0get_maxplayers(); i++)
        {
            
g_hasM79[i] = false
        
}
        
g_restarted false
    
}

Will this work ?? I tried several times in my plugins and seems it doesn't work at all ...I really don't know the reason ..Tell me how .
NJ anyway ^^!..
It must be "i <=" instead of "i <", get_maxplayers should be cached and it should be "i = 1" instead of "i = 0"

Basically, that code as it is, works for every player except the one with the last id.

If you prefer you can make it another way. Not significantly better or worst. Different.

Instead of:

PHP Code:
 for (new 0get_maxplayers(); i++)
 {
      
g_hasM79[i] = false
 

PHP Code:
new clean[33]
g_hasM79 clean 
__________________
joaquimandrade is offline
 



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 15:28.


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