12.03.2014, 21:10
Forwarding helps you to make a new "public" in your script.
Example:
Now you can use this function in your script just like the way you are using SendClientMessage or SendClientMessageToAll
Example:
pawn Код:
forward SendClientMessageToAllAdmins(msg[]);
public SendClientMessageToAllAdmins(msg[])
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && IsPlayerAdmin(i))
{
SendClientMessage(i,COLOR_YELLOW,msg);
}
}
}