SA-MP Forums Archive
Send to admin other message and to player other message - 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: Send to admin other message and to player other message (/showthread.php?tid=336762)



Send to admin other message and to player other message - lonako45 - 23.04.2012

ITS WORK !


Re: Send to admin other message and to player other message - ViniBorn - 23.04.2012

pawn Код:
GetAdminLevel(playerid) < 1 && !IsPlayerAdmin(playerid)
the message will be sent to all administrators?


Re: Send to admin other message and to player other message - lonako45 - 23.04.2012

No
Yes all admins..


Re: Send to admin other message and to player other message - ViniBorn - 23.04.2012

Quote:
Originally Posted by lonako45
Посмотреть сообщение
No
Yes all admins..
I didn't understand ^o)


Re: Send to admin other message and to player other message - lonako45 - 23.04.2012

the message will be sent to all administrators? Answer : Yes
hhhhhh


Re: Send to admin other message and to player other message - ViniBorn - 23.04.2012

I think that's
pawn Код:
if(strcmp(tmp, "Join", true) == 0 || strcmp(tmp, "j", true) == 0)
{
    if(activity == 0) return SendClientMessage(playerid, White, "айп фтймеъ оефтмъ");

    for(new i = 0; i < MAX_PLAYERS; i++)
        if(IsPlayerConnected(i) && IsPlayerFAdmin(i))
        {
            if(GetAdminLevel(playerid) > 0 || IsPlayerAdmin(playerid) || GetAdminSpay(playerid) > 0 || GetTempAdminLevel(playerid) > 0)
            {
                format(string1, sizeof(string1),"обчщ мдцишу мфтймеъ [%s]%d дщзчп",GetName(playerid),playerid);
                SendClientMessage(i,0xff0000ff,string1);
            }
        }

    return 1;
}



Re: Send to admin other message and to player other message - lonako45 - 23.04.2012

You My King !
When we get married?


Re: Send to admin other message and to player other message - lonako45 - 23.04.2012

OHH
now its send the message :
PHP код:
  format(string1sizeof(string1),"%s[%d] מבקש להצטרף לפעילות השחקן",playerid,GetName(playerid));
        
SendClientMessage(i,0x8e0c9ff,string1); 
To the admin and to the player!!
its the full command
PHP код:
if(strcmp(tmp"Join"true) == || strcmp(tmp"j"true) == 0)
        {
        if(
activity == 0) return SendClientMessage(playeridWhite"אין פעילות מופעלת");
        
SendClientMessage(playerid,0x8e0c9ff,"ביקשת להצטרף לפעילות,חכה שהאחראי ישגר אותך");
        for(new 
0MAX_PLAYERSi++)
        {
        if(
GetAdminLevel(i) < || IsPlayerAdmin(i) || GetAdminSpay(i) < || GetTempAdminLevel(i) < 1)
        {
        
format(string1sizeof(string1),"%s[%d] מבקש להצטרף לפעילות השחקן",playerid,GetName(playerid));
        
SendClientMessage(i,0x8e0c9ff,string1);
        }
        }
        return 
1;
        } 
help?


Re: Send to admin other message and to player other message - Claude - 23.04.2012

Can you explain it a bit more? Do you want it for all users/admins, only for users or only for admins?


Re: Send to admin other message and to player other message - lonako45 - 24.04.2012

admins :
PHP код:
for(new 0MAX_PLAYERSi++) 
        { 
        if(
GetAdminLevel(i) < || IsPlayerAdmin(i) || GetAdminSpay(i) < || GetTempAdminLevel(i) < 1
        { 
        
format(string1sizeof(string1),"%s[%d] מבקש להצטרף לפעילות השחקן",playerid,GetName(playerid)); 
        
SendClientMessage(i,0x8e0c9ff,string1); 
Player :
PHP код:
SendClientMessage(playerid,0x8e0c9ff,"ביקשת להצטרף לפעילות,חכה שהאחראי ישגר אותך");