Posts: 570
Threads: 55
Joined: Oct 2016
Hello all SA-MP Pawners and Scripter, i've a little question that i need to get the
#definition of
SendAdminMessage.
For example:
PHP код:
SendAdminMessage(COLOR_RED, string);
Error:
Код HTML:
Undefined Symbole: SendAdminMessage.
Posts: 484
Threads: 189
Joined: Jun 2016
Reputation:
0
Create a stock for it which will send a message only to administrators!
Posts: 577
Threads: 183
Joined: Jun 2013
Reputation:
0
Create a function named SendAdminMessage where you loop through your admins and send them a message
Posts: 570
Threads: 55
Joined: Oct 2016
But a Function like, Can get an example?
Posts: 577
Threads: 183
Joined: Jun 2013
Reputation:
0
SendAdminMessage(color, string[])
{
for new I = 0, j = GetPlayerPoolSize(); I < j; I++;
If isplayeradmin send client message
}
(Writing from my iPad, sorry)
Posts: 570
Threads: 55
Joined: Oct 2016
Thanks For your help both of you!
Posts: 16
Threads: 1
Joined: Feb 2016
Reputation:
0
I am using foreach.
stock submitToAdmins(color, string)
{
foreach(Player, i)
{
If(PlayerInfo[i][pAdmin] >= 1) SendClientMessage(i, color, string);
}
}
Something like that.Wrote it on phone.