Stock send message to admins.
#4

Quote:
Originally Posted by Osamakurdi
Посмотреть сообщение
Can u give me a stock that send messages to all admin from this code:
Код:
CMD:setadmin(playerid, params[])
{
	if(PInfo[playerid][Admin] < 6 && !IsPlayerAdmin(playerid)) return 0;
	new targetid, level;
	if(sscanf(params, "ui", targetid, level)) return SCM(playerid, -1, "USAGE:setadmin playerid level);
	PInfo[targetid][Admin] = level;
	SCM(playerid, -1, "You have made player an admin);
	SCM(playerid, -1, "An admin has made u admin);
	return 1;
}
there is no function in here that sends a message just to admins.

SCM stands for SendClientMessage

and secondly,the code is incorrect. it should be
PHP код:
SCM(playerid, -1"You have made player an admin);
SCM(targetid, -1, "
An admin has made u admin); 
Reply


Messages In This Thread
Stock send message to admins. - by Osamakurdi - 09.02.2018, 19:23
Re: Stock send message to admins. - by Abagail - 09.02.2018, 19:40
Re: Stock send message to admins. - by Mugala - 09.02.2018, 19:44
Re: Stock send message to admins. - by PepsiCola23 - 09.02.2018, 22:11
Re: Stock send message to admins. - by Cycle - 09.02.2018, 23:04
Re: Stock send message to admins. - by Osamakurdi - 10.02.2018, 08:11
Re: Stock send message to admins. - by PepsiCola23 - 10.02.2018, 09:06
Re: Stock send message to admins. - by Mugala - 10.02.2018, 12:02

Forum Jump:


Users browsing this thread: 1 Guest(s)