#1

I created this command for admins level 3 but it still works for normal players with level 0.
Код:
CMD:atalk(playerid, params[])
{
	new string[256], pName[MAX_PLAYER_NAME];
	if(APlayerData[playerid][PlayerLevel] >= 3 || IsPlayerAdmin(playerid))
	if(isnull(params))  return SendClientMessage(playerid, 0xFFFFFF, "/atalk [text]");
	GetPlayerName(playerid, pName, sizeof(pName));
	format(string, sizeof(string), "{1BBFE0} ***Admin %s:{FFFFFF} %s", pName, params);
	SendClientMessageToAll(0xFFFFFFF, string);
	return 1;
}
Reply
#2

pawn Код:
CMD:atalk(playerid, params[])
{
    new string[256], pName[MAX_PLAYER_NAME];
    if(APlayerData[playerid][PlayerLevel] < 3 && !IsPlayerAdmin(playerid))return SendClientMessage(playerid,-1,"No lvl no command");
    if(isnull(params))  return SendClientMessage(playerid, 0xFFFFFF, "/atalk [text]");
    GetPlayerName(playerid, pName, sizeof(pName));
    format(string, sizeof(string), "{1BBFE0} ***Admin %s:{FFFFFF} %s", pName, params);
    SendClientMessageToAll(0xFFFFFFF, string);
    return 1;
}
Reply
#3

Thanks
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)