Class mesage
#1

Hi , how can i send a specific class a message like :
if i want to send a message to all admins which have lvl 1 how do i do that ?
Reply
#2

https://sampwiki.blast.hk/wiki/How_to_pa..._protect_skins
Reply
#3

Код:
stock SendAdminMessage(color, string[])
{
	for(new i=0; i<MAX_PLAYERS; i++)
	{
		if(PI[i][Admin] == 1) 
		{
			SendClientMessage(i, color, string);
		}
	}
}
Код:
SendAdminMessage(-1,"Message");
Reply
#4

Using foreach & y_va :

PHP код:
stock SendClientMessageToAdmins(color, const msg[], va_args<>)
{
    new 
string[145];
    
va_format(stringsizeof(string), msgva_start<2>);
    foreach (new 
Player) if (IsPlayerConnected(i) && PlayerInfo[i][AdminLevel] == 1)
    {
        
SendClientMessage(icolorstring);
    }
    return 
1;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)