Raised This Month: $ Target: $400
 0% 

Ad_manager muestres el nombre del user


  
 
 
Thread Tools Display Modes
Author Message
-Fanaticspx1
Senior Member
Join Date: Aug 2010
Location: Venezuela
Old 08-25-2013 , 00:42   Ad_manager muestres el nombre del user
#1

-Bueno edite en algunas partes para ver si poniendo en la cfg %s.. en algun mensaje saliera el name del user pero no funciono y demas no salen las noticias. Ejemplo:

%s bienvenido al servidor!

Y en el sv tendria que salir...

TUNOMBRE bienvenido al servidor!
-Fanaticspx bienvenido al servidor!

PHP Code:
#include <amxmodx>
#include <amxmisc>

#pragma semicolon 1

new const PLUGIN[] = "Autoresponder/Advertiser";
new const 
VERSION[] = "0.5";
new const 
AUTHOR[] = "MaximusBrood";

#define NORM_AD 0
#define SAY_AD 1

#define COND 0
#define STORE 1

#define COND_TKN '%'
#define SAY_TKN '@'

#define COND_STKN "%"
#define DEVIDE_STKN "~"
#define SAY_STKN "@"

//-.-.-.-.-.-.-.-.DEFINES.-.-.-.-.-.-.-.-.-.-.

//Maximum amount of ads
#define MAXADS 64

//Minimum difference between two different ads (float)
new const Float:RAND_MIN 60.0;

//Maximum difference between two different ads (float)
new const Float:RAND_MAX 80.0;

//-.-.-.-.-.-.-.-.END DEFINES..-.-.-.-.-.-.-.

//Stores
new sayConditions[MAXADS][4][32]; // Cambie 3 por 4
new normConditions[MAXADS][4][32]; // Cambie 3 por 4
new normStore[MAXADS][128];
new 
sayStore[MAXADS][2][128];

new 
gmsgSayText;

//Counters
new adCount[2] = {00};

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_cvar("admanager_version""0.5"FCVAR_SERVER);
    
    
register_cvar("ad_react_all""1");
    
    
gmsgSayText get_user_msgid("SayText");
    
    
register_clcmd("say","eventSay");
    
register_clcmd("say_team","eventSay");
    
    
//Delay the load proces by 10 sec because we don't want to get more load
    //on the already high-load mapchange.
    //Too soon to affect players while playing, too late to create time-out @ mapchange
    
set_task(10.0"load");
}

public 
load()
{
    
//Load the data
    
new filepath[64];
    
get_configsdir(filepath63);
    
format(filepath63"%s/advertisements.ini"filepath);
    
    if(
file_exists(filepath))
    {
        new 
output[512], conditions[128], temp[64], type;
        
        
//Open file
        
new fHandle fopen(filepath"rt");
        
        
//Checks for failure
        
if(!fHandle)
            return;
        
        
//Loop through all lines
        
for(new 0MAXADS && !feof(fHandle); a++)
        {
            
//Get line
            
fgets(fHandleoutput511);
            
            
            
//Work away comments
            
if(output[0] == ';' || !output[0] || output[0] == ' ' || output[0] == 10
            {
                
//Line is not counted
                
a--;
                continue;
            }
            
            
//Reset type
            
type 0;
            
            
//Check if it contains conditions
            
if(output[0] == COND_TKN)
            {
                
//Cut the conditions off the string
                
split(outputconditions127output511DEVIDE_STKN);
                
                
//Determine if its say check or normal ad
                
type output[0] == SAY_TKN 0;
                
                
//Put the conditions in own space
                
for(new 04b++) // Cambie 3 por 4
                
{
                    new 
sort[16], cond[32], numb;
                    
                    
//Remove the % from line 
                    
conditions[0] = ' ';
                    
trim(conditions);
                    
                    
//Get one condition from the line
                    
split(conditionstemp64conditions127COND_STKN);
                    
                    
split(tempsort15cond31" ");
                    
                    if(
equali(sort"map"))
                    {
                        
numb 0;
                    } else if(
equali(sort"min_players"))
                    {
                        
numb 1;
                    } else if(
equali(sort"max_players"))
                    {
                        
numb 2;
                    } else if(
equali(sort"s")) // Agregue esta linea
                    
{
                        
numb 3;
                    } else
                    {
                        continue;
                    }
                    
                    
//Copy it to its final resting place ^^
                    
setString(CONDtypecondadCount[type], numb);
                    
                    
//Exit if it hasn't got more conditions
                    
if(!conditions[0])
                        break;
                }
            }
            
            if(
type == 0)
                
type output[0] == SAY_TKN 0;
            
            if(
type == SAY_AD)
            {
                new 
said[32], answer[128];
                
                
//Remove the @ from line
                
output[0] = ' ';
                
trim(output);
                
                
split(outputsaid31answer127DEVIDE_STKN);
                
                
//Apply color
                
setColor(answer127);
                
                
//Save it
                
setString(STORESAY_ADsaidadCount[SAY_AD], 0);
                
setString(STORESAY_ADansweradCount[SAY_AD], 1);
            } else
//if(type == NORM_AD)
            
{
                
//Apply color
                
setColor(output511);
                
                
//Save it
                
setString(STORENORM_ADoutputadCount[NORM_AD]);
            }
            
            
//Increment the right counter
            
adCount[NORM_AD] += type == NORM_AD 0;
            
adCount[SAY_AD]  += type == SAY_AD  0;
        }
        
        
//Set a first task, if there are any normal ads
        
if(adCount[NORM_AD] != 0)
            
set_task(random_float(RAND_MINRAND_MAX), "eventTask");
        
        
//Close file to prevent lockup
        
fclose(fHandle);    
    }
}

new 
currAd = -1;

public 
eventTask()
{
    
//Go past all ads and check conditions
    
for(new 0adCount[NORM_AD]; a++)
    {
        
//Put current ad to the next one
        
currAd currAd == adCount[NORM_AD] - currAd 1;
        
        if(
checkConditions(currAdNORM_AD))
        {
            
//Display the ad
            
new data[3];
            
data[0] = currAd;
            
data[1] = NORM_AD;
            
data[2] = 0;
            
displayAd(data);
            
            break;
        }
    }
        
    
//Set a new task
    
set_task(random_float(RAND_MINRAND_MAX), "eventTask");
    
    return 
PLUGIN_CONTINUE;
}

public 
eventSay(id)
{
    
//If nothing is said, don't check
    
if(adCount[SAY_AD] == 0)
        return 
PLUGIN_CONTINUE;
    
    new 
talk[64], keyword[16];
    
read_args(talk63) ;
        
    
//En nu rennen voor jullie zakgeld klootzjakken!
    
for(new 0adCount[SAY_AD]; a++)
    {
        
//Get the string
        
getString(STORESAY_ADkeyword15a0);
        
        if(
containi(talkkeyword) != -1)
        {
            
//Check the rest if it fails to conditions
            
if(!checkConditions(aSAY_AD))
                continue;
            
            new 
data[3];
            
data[0] = a;
            
data[1] = SAY_AD;
            
data[2] = id;
            
            
//Set the task
            
set_task(0.3"displayAd"0data3);
            
            
//Don't execute more of them
            
break;
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
displayAd(params[])
{
    
//Get the string that is going to be displayed
    
new message[128];
    
getString(STOREparams[1], message127params[0], params[1]);
    
    
//If its enabled by cvar and id is set, display to person who triggered message only
    
if(get_cvar_num("ad_react_all") == && params[2] != 0)
    {
        
message_begin(MSG_ONEgmsgSayText, {0,0,0}, params[2]);
        
write_byte(params[2]);
        
write_string(message);
        
message_end();
    
    } else
    {
        
//Display the message to everyone
        
new plist[32], playernumplayer;
        
        
get_players(plistplayernum"c");
    
        for(new 
0playernumi++)
        {
            
player plist[i];
            
            
message_begin(MSG_ONEgmsgSayText, {0,0,0}, player);
            
write_byte(player);
            
write_string(message);
            
message_end();
        }
    }
    
    return 
PLUGIN_HANDLED;
}

//---------------------------------------------------------------------------
//                                STOCKS
//---------------------------------------------------------------------------

stock checkConditions(atype)
{
    
//Mapname
    
if((type == NORM_AD && normConditions[a][0][0]) || (type == SAY_AD && sayConditions[a][0][0]))
    {
        new 
mapname[32];
        
get_mapname(mapname31);
        
        if(! (
type == NORM_AD && equali(mapnamenormConditions[a][0]) ) || (type == SAY_AD && equali(mapnamesayConditions[a][0]) ) )
            return 
false;
    }
    
    
//Min Players
    
if((type == NORM_AD && normConditions[a][1][0]) || (type == SAY_AD && sayConditions[a][1][0]))
    {
        new 
playersnum get_playersnum();
        
        if( (
type == NORM_AD && playersnum str_to_num(normConditions[a][1]) ) || (type == SAY_AD && playersnum str_to_num(sayConditions[a][1]) ) )
            return 
false;
    }
    
    
//Max Players
    
if((type == NORM_AD && normConditions[a][2][0]) || (type == SAY_AD && sayConditions[a][2][0]))
    {
        new 
playersnum get_playersnum();
        
        if( (
type == NORM_AD && playersnum str_to_num(normConditions[a][2]) ) || (type == SAY_AD && playersnum str_to_num(sayConditions[a][2]) ) )
            return 
false;
    }

// Agregue estas lineas

    
if((type == NORM_AD && normConditions[a][3][0]) || (type == SAY_AD && sayConditions[a][3][0]))
    {
        new 
name[32], id;
        
get_user_name(idname31);
    
        if(! (
type == NORM_AD && equali(namenormConditions[a][3]) ) || (type == SAY_AD && equali(namesayConditions[a][3]) ) )
            return 
false;
    }
    
    
//If everything went fine, return true
    
return true;
}    

stock setColor(string[], len)
{
    if (
contain(string"!t") != -|| contain(string"!g") != -|| contain(string,"!n") != -1)
    {
        
//Some nice shiny colors ^^
        
replace_all(stringlen"!t""^x03");
        
replace_all(stringlen"!n""^x01");
        
replace_all(stringlen"!g""^x04");
        
        
//Work away a stupid bug
        
format(stringlen"^x01%s"string);
    }
}

stock getString(modetypestring[], lenonetwo 0)
{
    
//server_print("mode: %d type: %d len: %d one: %d two %d", mode, type, len, one, two);
    
    //Uses the fact that a string is passed by reference
    
if(mode == COND)
    {
        if(
type == NORM_AD)
        {
            
copy(stringlennormConditions[one][two]);
        } else
//if(type = SAY_AD)
        
{
            
copy(stringlensayConditions[one][two]);
        }
    } else
//if(mode == STORE)
    
{
        if(
type == NORM_AD)
        {
            
copy(stringlennormStore[one]);
        } else
//if(type == SAY_AD)
        
{
            
copy(stringlensayStore[one][two]);
        }
    }
}

stock setString(modetypestring[], onetwo 0)
{
    if(
mode == COND)
    {
        if(
type == NORM_AD)
        {
            
copy(normConditions[one][two], 31string);
        } else
//if(type = SAY_AD)
        
{
            
copy(sayConditions[one][two], 31string);
        }
    } else
//if(mode == STORE)
    
{
        if(
type == NORM_AD)
        {
            
copy(normStore[one], 127string);
        } else
//if(type == SAY_AD)
        
{
            
copy(sayStore[one][two], 127string);
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 
__________________
DE LOS ERRORES SE APRENDE. ATT: Starsailor
-Fanaticspx1 is offline
Send a message via MSN to -Fanaticspx1 Send a message via Skype™ to -Fanaticspx1
DiegoCS
Senior Member
Join Date: Mar 2013
Old 08-25-2013 , 08:50   Re: Ad_manager muestres el nombre del user
#2

PHP Code:
#include <amxmodx>
#include <amxmisc>

#pragma semicolon 1

new const PLUGIN[] = "Autoresponder/Advertiser";
new const 
VERSION[] = "0.5";
new const 
AUTHOR[] = "MaximusBrood";

#define NORM_AD 0
#define SAY_AD 1

#define COND 0
#define STORE 1

#define COND_TKN '%'
#define SAY_TKN '@'

#define COND_STKN "%"
#define DEVIDE_STKN "~"
#define SAY_STKN "@"

//-.-.-.-.-.-.-.-.DEFINES.-.-.-.-.-.-.-.-.-.-.

//Maximum amount of ads
#define MAXADS 64

//Minimum difference between two different ads (float)
new const Float:RAND_MIN 60.0;

//Maximum difference between two different ads (float)
new const Float:RAND_MAX 80.0;

//-.-.-.-.-.-.-.-.END DEFINES..-.-.-.-.-.-.-.

//Stores
new sayConditions[MAXADS][4][32]; // Cambie 3 por 4
new normConditions[MAXADS][4][32]; // Cambie 3 por 4
new normStore[MAXADS][128];
new 
sayStore[MAXADS][2][128];

new 
gmsgSayText;

//Counters
new adCount[2] = {00};

public 
plugin_init() {
    
register_plugin(PLUGINVERSIONAUTHOR);
    
register_cvar("admanager_version""0.5"FCVAR_SERVER);
    
    
register_cvar("ad_react_all""1");
    
    
gmsgSayText get_user_msgid("SayText");
    
    
register_clcmd("say","eventSay");
    
register_clcmd("say_team","eventSay");
    
    
//Delay the load proces by 10 sec because we don't want to get more load
    //on the already high-load mapchange.
    //Too soon to affect players while playing, too late to create time-out @ mapchange
    
set_task(10.0"load");
}

public 
client_putinserver(idset_task(5.0"mensaje")

public 
mensaje(id) {
new 
szName[32];get_user_name(idszNamecharsmax(szName))
client_print(idprint_chat"%s Bienvenido al servidor"szName)
}

public 
load()
{
    
//Load the data
    
new filepath[64];
    
get_configsdir(filepath63);
    
format(filepath63"%s/advertisements.ini"filepath);
    
    if(
file_exists(filepath))
    {
        new 
output[512], conditions[128], temp[64], type;
        
        
//Open file
        
new fHandle fopen(filepath"rt");
        
        
//Checks for failure
        
if(!fHandle)
            return;
        
        
//Loop through all lines
        
for(new 0MAXADS && !feof(fHandle); a++)
        {
            
//Get line
            
fgets(fHandleoutput511);
            
            
            
//Work away comments
            
if(output[0] == ';' || !output[0] || output[0] == ' ' || output[0] == 10
            {
                
//Line is not counted
                
a--;
                continue;
            }
            
            
//Reset type
            
type 0;
            
            
//Check if it contains conditions
            
if(output[0] == COND_TKN)
            {
                
//Cut the conditions off the string
                
split(outputconditions127output511DEVIDE_STKN);
                
                
//Determine if its say check or normal ad
                
type output[0] == SAY_TKN 0;
                
                
//Put the conditions in own space
                
for(new 04b++) // Cambie 3 por 4
                
{
                    new 
sort[16], cond[32], numb;
                    
                    
//Remove the % from line 
                    
conditions[0] = ' ';
                    
trim(conditions);
                    
                    
//Get one condition from the line
                    
split(conditionstemp64conditions127COND_STKN);
                    
                    
split(tempsort15cond31" ");
                    
                    if(
equali(sort"map"))
                    {
                        
numb 0;
                    } else if(
equali(sort"min_players"))
                    {
                        
numb 1;
                    } else if(
equali(sort"max_players"))
                    {
                        
numb 2;
                    } else if(
equali(sort"s")) // Agregue esta linea
                    
{
                        
numb 3;
                    } else
                    {
                        continue;
                    }
                    
                    
//Copy it to its final resting place ^^
                    
setString(CONDtypecondadCount[type], numb);
                    
                    
//Exit if it hasn't got more conditions
                    
if(!conditions[0])
                        break;
                }
            }
            
            if(
type == 0)
                
type output[0] == SAY_TKN 0;
            
            if(
type == SAY_AD)
            {
                new 
said[32], answer[128];
                
                
//Remove the @ from line
                
output[0] = ' ';
                
trim(output);
                
                
split(outputsaid31answer127DEVIDE_STKN);
                
                
//Apply color
                
setColor(answer127);
                
                
//Save it
                
setString(STORESAY_ADsaidadCount[SAY_AD], 0);
                
setString(STORESAY_ADansweradCount[SAY_AD], 1);
            } else
//if(type == NORM_AD)
            
{
                
//Apply color
                
setColor(output511);
                
                
//Save it
                
setString(STORENORM_ADoutputadCount[NORM_AD]);
            }
            
            
//Increment the right counter
            
adCount[NORM_AD] += type == NORM_AD 0;
            
adCount[SAY_AD]  += type == SAY_AD  0;
        }
        
        
//Set a first task, if there are any normal ads
        
if(adCount[NORM_AD] != 0)
            
set_task(random_float(RAND_MINRAND_MAX), "eventTask");
        
        
//Close file to prevent lockup
        
fclose(fHandle);    
    }
}

new 
currAd = -1;

public 
eventTask()
{
    
//Go past all ads and check conditions
    
for(new 0adCount[NORM_AD]; a++)
    {
        
//Put current ad to the next one
        
currAd currAd == adCount[NORM_AD] - currAd 1;
        
        if(
checkConditions(currAdNORM_AD))
        {
            
//Display the ad
            
new data[3];
            
data[0] = currAd;
            
data[1] = NORM_AD;
            
data[2] = 0;
            
displayAd(data);
            
            break;
        }
    }
        
    
//Set a new task
    
set_task(random_float(RAND_MINRAND_MAX), "eventTask");
    
    return 
PLUGIN_CONTINUE;
}

public 
eventSay(id)
{
    
//If nothing is said, don't check
    
if(adCount[SAY_AD] == 0)
        return 
PLUGIN_CONTINUE;
    
    new 
talk[64], keyword[16];
    
read_args(talk63) ;
        
    
//En nu rennen voor jullie zakgeld klootzjakken!
    
for(new 0adCount[SAY_AD]; a++)
    {
        
//Get the string
        
getString(STORESAY_ADkeyword15a0);
        
        if(
containi(talkkeyword) != -1)
        {
            
//Check the rest if it fails to conditions
            
if(!checkConditions(aSAY_AD))
                continue;
            
            new 
data[3];
            
data[0] = a;
            
data[1] = SAY_AD;
            
data[2] = id;
            
            
//Set the task
            
set_task(0.3"displayAd"0data3);
            
            
//Don't execute more of them
            
break;
        }
    }
    
    return 
PLUGIN_CONTINUE;
}

public 
displayAd(params[])
{
    
//Get the string that is going to be displayed
    
new message[128];
    
getString(STOREparams[1], message127params[0], params[1]);
    
    
//If its enabled by cvar and id is set, display to person who triggered message only
    
if(get_cvar_num("ad_react_all") == && params[2] != 0)
    {
        
message_begin(MSG_ONEgmsgSayText, {0,0,0}, params[2]);
        
write_byte(params[2]);
        
write_string(message);
        
message_end();
    
    } else
    {
        
//Display the message to everyone
        
new plist[32], playernumplayer;
        
        
get_players(plistplayernum"c");
    
        for(new 
0playernumi++)
        {
            
player plist[i];
            
            
message_begin(MSG_ONEgmsgSayText, {0,0,0}, player);
            
write_byte(player);
            
write_string(message);
            
message_end();
        }
    }
    
    return 
PLUGIN_HANDLED;
}

//---------------------------------------------------------------------------
//                                STOCKS
//---------------------------------------------------------------------------

stock checkConditions(atype)
{
    
//Mapname
    
if((type == NORM_AD && normConditions[a][0][0]) || (type == SAY_AD && sayConditions[a][0][0]))
    {
        new 
mapname[32];
        
get_mapname(mapname31);
        
        if(! (
type == NORM_AD && equali(mapnamenormConditions[a][0]) ) || (type == SAY_AD && equali(mapnamesayConditions[a][0]) ) )
            return 
false;
    }
    
    
//Min Players
    
if((type == NORM_AD && normConditions[a][1][0]) || (type == SAY_AD && sayConditions[a][1][0]))
    {
        new 
playersnum get_playersnum();
        
        if( (
type == NORM_AD && playersnum str_to_num(normConditions[a][1]) ) || (type == SAY_AD && playersnum str_to_num(sayConditions[a][1]) ) )
            return 
false;
    }
    
    
//Max Players
    
if((type == NORM_AD && normConditions[a][2][0]) || (type == SAY_AD && sayConditions[a][2][0]))
    {
        new 
playersnum get_playersnum();
        
        if( (
type == NORM_AD && playersnum str_to_num(normConditions[a][2]) ) || (type == SAY_AD && playersnum str_to_num(sayConditions[a][2]) ) )
            return 
false;
    }

// Agregue estas lineas

    
if((type == NORM_AD && normConditions[a][3][0]) || (type == SAY_AD && sayConditions[a][3][0]))
    {
        new 
name[32], id;
        
get_user_name(idname31);
    
        if(! (
type == NORM_AD && equali(namenormConditions[a][3]) ) || (type == SAY_AD && equali(namesayConditions[a][3]) ) )
            return 
false;
    }
    
    
//If everything went fine, return true
    
return true;
}    

stock setColor(string[], len)
{
    if (
contain(string"!t") != -|| contain(string"!g") != -|| contain(string,"!n") != -1)
    {
        
//Some nice shiny colors ^^
        
replace_all(stringlen"!t""^x03");
        
replace_all(stringlen"!n""^x01");
        
replace_all(stringlen"!g""^x04");
        
        
//Work away a stupid bug
        
format(stringlen"^x01%s"string);
    }
}

stock getString(modetypestring[], lenonetwo 0)
{
    
//server_print("mode: %d type: %d len: %d one: %d two %d", mode, type, len, one, two);
    
    //Uses the fact that a string is passed by reference
    
if(mode == COND)
    {
        if(
type == NORM_AD)
        {
            
copy(stringlennormConditions[one][two]);
        } else
//if(type = SAY_AD)
        
{
            
copy(stringlensayConditions[one][two]);
        }
    } else
//if(mode == STORE)
    
{
        if(
type == NORM_AD)
        {
            
copy(stringlennormStore[one]);
        } else
//if(type == SAY_AD)
        
{
            
copy(stringlensayStore[one][two]);
        }
    }
}

stock setString(modetypestring[], onetwo 0)
{
    if(
mode == COND)
    {
        if(
type == NORM_AD)
        {
            
copy(normConditions[one][two], 31string);
        } else
//if(type = SAY_AD)
        
{
            
copy(sayConditions[one][two], 31string);
        }
    } else
//if(mode == STORE)
    
{
        if(
type == NORM_AD)
        {
            
copy(normStore[one], 127string);
        } else
//if(type == SAY_AD)
        
{
            
copy(sayStore[one][two], 127string);
        }
    }
}
/* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE
*{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang3082\\ f0\\ fs16 \n\\ par }
*/ 

Last edited by DiegoCS; 08-25-2013 at 22:46. Reason: fix (?)
DiegoCS is offline
MexPower
Veteran Member
Join Date: Nov 2012
Old 08-25-2013 , 08:57   Re: Ad_manager muestres el nombre del user
#3

no modifiques el sma en el .ini solo ponlo
%s bienvenido
__________________
Allied Modders En Español
MexPower is offline
-Fanaticspx1
Senior Member
Join Date: Aug 2010
Location: Venezuela
Old 08-25-2013 , 10:35   Re: Ad_manager muestres el nombre del user
#4

-Diego xd gracias pero no es lo q busco .... Y Mexpower... No sirve si pongo %s en la .ini xq en el plugin no se refleja get_user_name ni nada tengo q agregarlo y no se como hacerlo trate de modificarlo pero nada?... ya intente colocandolo en la .ini pero las noticias no salen!
__________________
DE LOS ERRORES SE APRENDE. ATT: Starsailor
-Fanaticspx1 is offline
Send a message via MSN to -Fanaticspx1 Send a message via Skype™ to -Fanaticspx1
Winchester90
Senior Member
Join Date: May 2013
Location: Dale! RG4L Baby
Old 08-25-2013 , 10:45   Re: Ad_manager muestres el nombre del user
#5

Manda un task y ya y cambia static szName blabla por esto:

Code:
static name[32]     get_user_name(id, name, sizeof name - 1)
__________________
Proyectos No comercio XD
Zombie Resurection 1.0 (45%)

Last edited by Winchester90; 08-25-2013 at 10:45.
Winchester90 is offline
-Fanaticspx1
Senior Member
Join Date: Aug 2010
Location: Venezuela
Old 08-25-2013 , 11:04   Re: Ad_manager muestres el nombre del user
#6

Winchester... No entendi... no creo que funcione de la forma q hablas mira MI CODE Y VE!
__________________
DE LOS ERRORES SE APRENDE. ATT: Starsailor
-Fanaticspx1 is offline
Send a message via MSN to -Fanaticspx1 Send a message via Skype™ to -Fanaticspx1
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-25-2013 , 11:18   Re: Ad_manager muestres el nombre del user
#7

Vos lo queres solo cuando se conectan?
__________________
Quote:
Originally Posted by YakumoHiratsuhi View Post
@DiegoCS
No sé talvez solo sea yo, pero tu me caes mal campeón.


JAJAJAJAJAJAJAJAJA

Quote:
Originally Posted by meTaLiCroSS View Post
Con 12 años quien no habla mierda detras de un PC, esperate a que te diga algo en persona jajajajaj VIVO DE AHI NO SALE JAJAJA
Matians is offline
-Fanaticspx1
Senior Member
Join Date: Aug 2010
Location: Venezuela
Old 08-25-2013 , 11:27   Re: Ad_manager muestres el nombre del user
#8

-No, yo quiero que en la .ini cuando ponga %s en una noticia... En el servidor salga mi nombre y la noticia ejemplo... Yo pongo en la .ini

%s renta tu admin a 10$!

-En el servidor deberia salir

-Fanaticspx1 renta tu admin a 10$!
__________________
DE LOS ERRORES SE APRENDE. ATT: Starsailor
-Fanaticspx1 is offline
Send a message via MSN to -Fanaticspx1 Send a message via Skype™ to -Fanaticspx1
Matians
Veteran Member
Join Date: Nov 2010
Location: ME QUIEREN ROBAR
Old 08-25-2013 , 11:35   Re: Ad_manager muestres el nombre del user
#9

No, esta mal lo que decís.

Suponete que en el .ini tenes esto . INFO = "%s Sos bienvenido siempre en mi server"

El plugin es así

formatex(buffer, charsmax(buffer), "%s", INFO) Osea cargo lo que decia info, osea cargo esto "%s Sos bienve..."

Cuando le seteas un valor a ese %s? Deberías hacer así.

formatex(buffer, charsmax(buffer, "%s%s", INFO, name)

Y ahora si debería andar.
__________________
Quote:
Originally Posted by YakumoHiratsuhi View Post
@DiegoCS
No sé talvez solo sea yo, pero tu me caes mal campeón.


JAJAJAJAJAJAJAJAJA

Quote:
Originally Posted by meTaLiCroSS View Post
Con 12 años quien no habla mierda detras de un PC, esperate a que te diga algo en persona jajajajaj VIVO DE AHI NO SALE JAJAJA
Matians is offline
-Fanaticspx1
Senior Member
Join Date: Aug 2010
Location: Venezuela
Old 08-25-2013 , 11:39   Re: Ad_manager muestres el nombre del user
#10

-Si pero como editarias el ad_manager...... ?, entendi lo q me dijiste pero quede igual en una nube...
__________________
DE LOS ERRORES SE APRENDE. ATT: Starsailor
-Fanaticspx1 is offline
Send a message via MSN to -Fanaticspx1 Send a message via Skype™ to -Fanaticspx1
 



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 19:34.


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