Raised This Month: $ Target: $400
 0% 

Entity plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 01-12-2015 , 11:08   Re: Entity plugin
Reply With Quote #1

there no error just, 4 warning.

You miss one line before last added
Quote:
return PLUGIN_HANDLED;
Line 6:
Code:
new iPlayers[32], playerCount, player;
They do not Uses

There is no need it:
Code:
#include <amxmisc>
Check now the Code:
PHP Code:
#include <amxmodx>
#include <cstrike>
#include <engine>

public plugin_init() 
{
    
register_plugin("RobPlayer""1.00""DannyQueen")
    
register_clcmd("say""rob_say")
}

public 
rob_say(id)
{
    
    new 
szMsg[34];
    
read_args(szMsgcharsmax(szMsg));
    
    if (
strlen(szMsg) > 32)
    return 
PLUGIN_CONTINUE
        
    
new iPlayers[32], szName[33] ,playerCountplayer 
    get_user_name
(player,szName,charsmax(szName));
    
get_players(iPlayersplayerCount"ach");
    
    for (new 
0playerCounti++)
    {
        
player iPlayers[i] ;
        
        if (
player == id) continue;
        
        if( 
entity_range(idplayer) < 3.0)
        {
            if (
equal(szMsg,szName))
            {                
                
cs_set_user_money(idcs_get_user_money(id) + cs_get_user_money(player))
            }
        }
    }
    
    return 
PLUGIN_HANDLED;

Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
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 15:32.


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