Posts: 621
Threads: 174
Joined: Nov 2013
Код:
new connectstring[64], cname[MAX_PLAYER_NAME];
GetPlayerName(playerid,cname,MAX_PLAYER_NAME);
format(connectstring,sizeof (connectstring),"%s has joined American Streets Roleplay....",cname);
ABroadCast(COLOR_YELLOW, connectstring, 1);
I want if Player joins the server.. Only the ON DUTY admin will see the message
Admin Duty Variable
Posts: 232
Threads: 5
Joined: Jun 2012
Reputation:
0
How about inspecting the code I gave you on previous thread and trying to write something THAT easy by yourself? Scripting Help forums are not for getting your gamemode completed, we help you to make you learn.
Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by Calabresi
How about inspecting the code I gave you on previous thread and trying to write something THAT easy by yourself? Scripting Help forums are not for getting your gamemode completed, we help you to make you learn.
|
I was thinking about your code you give to me..
Im not sure of that
Posts: 241
Threads: 13
Joined: Jan 2014
Код:
for(new i=0;i<MAX_PLAYERS;i++)
{
if(OnDutyAdmin[i] == 1)
{
new connectstring[64], cname[MAX_PLAYER_NAME];
GetPlayerName(playerid,cname,MAX_PLAYER_NAME);
format(connectstring,sizeof (connectstring),"%s has joined American Streets Roleplay....",cname);
ABroadCast(COLOR_YELLOW, connectstring, 1);
}
}
helpfull?
Posts: 621
Threads: 174
Joined: Nov 2013
Quote:
Originally Posted by Calabresi
pawn Код:
new connectstring[64], cname[MAX_PLAYER_NAME]; GetPlayerName(playerid,cname,MAX_PLAYER_NAME); format(connectstring,sizeof (connectstring),"%s has joined American Streets Roleplay....",cname); for(new i = 0; i < MAX_PLAYERS; i++) { if(AdminDuty[i] == 1) SendClientMessage(i, -1, connectstring); }
|
BTW, what is that..
Код:
if(AdminDuty[i] == 1) SendClientMessage(i, -1, connectstring);
What is the mean of -1 in that code.. is that helpful?
Posts: 241
Threads: 13
Joined: Jan 2014
Posts: 1,578
Threads: 15
Joined: Feb 2013
Reputation:
0
Oh please, if you don't even know how SendClientMessage works...
Go read the wiki and watch some tutorials.