09.02.2018, 22:11
Quote:
|
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;
}
|
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);


