All pastes #808268 Raw Edit

Miscellany

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