SA-MP Forums Archive
IP[rep] - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: IP[rep] (/showthread.php?tid=325218)



IP[rep] - Dan_Barocu - 12.03.2012

i made a thing and this is what it says

PHP код:
format(mess,sizeof(mess),"%s a intrat in server.  [ {278227}Tara: %s | {278227}IP: %s | {278227}Ping: %i |",GetPName(playerid),Country,IP,GetPlayerPing(playerid));
   
Line:(24) > SendAdminMessage(COLOR_ADMINstring); 
PHP код:
Error:
(
24): error 017undefined symbol "SendAdminMessage"
what i do i give rep here
please help!i want it to send the message to admins not to players..


Re: IP[rep] - Dan_Barocu - 12.03.2012

anyone know??


Re: IP[rep] - milanosie - 12.03.2012

O my god... It means u did not define what SendAdminMessage means.


Re: IP[rep] - Dan_Barocu - 12.03.2012

Quote:
Originally Posted by milanosie
Посмотреть сообщение
O my god... It means u did not define what SendAdminMessage means.

PHP код:
(26) : warning 215expression has no effect i defined it its same line i just added #define SendAdminMessage 



Re: IP[rep] - Bogdan1992 - 12.03.2012

PHP код:
forward     SendAdminMessage(color,const mystring[]);
public 
SendAdminMessage(color,const mystring[]){
        new 
string[128];
    for(new 
ii<MAX_PLAYERS i++){
        if(
IsPlayerConnected(i) == 1)
        if(
PlayerInfo[i][pAdmin] > 0//Here add your admin system.
        
SendClientMessage(i, -1mystring);
    }
    return 
1;




Re: IP[rep] - Dan_Barocu - 12.03.2012

Quote:
Originally Posted by Bogdan1992
Посмотреть сообщение
PHP код:
forward     SendAdminMessage(color,const mystring[]);
public 
SendAdminMessage(color,const mystring[]){
        new 
string[128];
    for(new 
ii<MAX_PLAYERS i++){
        if(
IsPlayerConnected(i) == 1)
        if(
PlayerInfo[i][pAdmin] > 0//Here add your admin system.
        
SendClientMessage(i, -1mystring);
    }
    return 
1;

its not an admin sistem its an thing when a player logins we admins see their ip.


Re: IP[rep] - Bogdan1992 - 12.03.2012

Sorry but i must say this in another language, he's english is = 0.

Ba tu ai un sistem de login da? Tu la comanda de ban ce "if" ai ca sa nu foloseasca alti comenzile pentru admini?


Re: IP[rep] - Dan_Barocu - 12.03.2012

have mess?its an Fs.


Re: IP[rep] - Dan_Barocu - 12.03.2012

no work anyone else?


Re: IP[rep] - Mike_Peterson - 12.03.2012

This works for all RCON admins

pawn Код:
stock SendAdminMessage(color, string[])
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if (IsPlayerAdmin(i))
            {
                SendClientMessage(i, color, string);
            }
        }
    }
}
If u don't want it for RCON admins only, then use your admin system instead of IsPlayerAdmin, if you don't know how to do it, don't script a roleplay server.
comprende?