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(string1, sizeof(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) == 0 || strcmp(tmp, "j", true) == 0)
{
if(activity == 0) return SendClientMessage(playerid, White, "אין פעילות מופעלת");
SendClientMessage(playerid,0x8e0c9ff,"ביקשת להצטרף לפעילות,חכה שהאחראי ישגר אותך");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(GetAdminLevel(i) < 1 || IsPlayerAdmin(i) || GetAdminSpay(i) < 1 || GetTempAdminLevel(i) < 1)
{
format(string1, sizeof(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 i = 0; i < MAX_PLAYERS; i++)
{
if(GetAdminLevel(i) < 1 || IsPlayerAdmin(i) || GetAdminSpay(i) < 1 || GetTempAdminLevel(i) < 1)
{
format(string1, sizeof(string1),"%s[%d] מבקש להצטרף לפעילות השחקן",playerid,GetName(playerid));
SendClientMessage(i,0x8e0c9ff,string1);
Player :
PHP код:
SendClientMessage(playerid,0x8e0c9ff,"ביקשת להצטרף לפעילות,חכה שהאחראי ישגר אותך");