SA-MP Forums Archive
/cc intrebare - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Română/Romanian (https://sampforum.blast.hk/forumdisplay.php?fid=40)
+---- Thread: /cc intrebare (/showthread.php?tid=383354)



/cc intrebare - Rapk1d - 07.10.2012

Cum as putea ca la /cc cand executi comanda , chatul la admini si helperi sa ramana si la newbie si jucatori normali sa dispara ?


Code:
    if(strcmp(cmd, "/cc", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pHelper] >= 1)
			{
                ClearChatboxToAll(playerid,100);
                GetPlayerName(playerid, sendername, sizeof(sendername));
                format(string, sizeof(string), "XGamminG RPG: %s a sters chatul", sendername);
                SendClientMessageToAll(COLOR_LIGHTRED, string);
                //SendClientMessage(playerid,0x70AD52FF, "Chatul a fost sters cu succes!");
			}
			else
			{
				SendClientMessage(playerid, COLOR_GRAD2, "You're not a Admin so you cannot use this command!");
				return 1;
			}
		}
	}