IP[rep]
#1

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..
Reply
#2

anyone know??
Reply
#3

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

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 
Reply
#5

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;

Reply
#6

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.
Reply
#7

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?
Reply
#8

have mess?its an Fs.
Reply
#9

no work anyone else?
Reply
#10

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?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)