All pastes #808134 Raw Edit

Someone

public cpp v1 · immutable
·published 2007-12-07 09:30 UTC
rendered paste body
	if(text[0] == '@') {	    new string[256], sName[24]; GetPlayerName(playerid, sName, 24);	    if(PlayerData[playerid][Honor] || xLevel(playerid) >= 11) {		format(string, sizeof(string)," <Honor> %s: %s [id: %d]", sName, text[1], playerid);		for(new i=0;i<=MAX_PLAYERS;i++) if(!PlayerData[i][Honor] || xLevel(playerid) >= 11) SendClientMessage(i, COLOR_GREEN, string);	    } else {	        format(string, sizeof(string)," %s [id: %d]", sName, text[1], playerid);	        SendPlayerMessageToPlayer(i,playerid,string);	    }	    return 0;	}