All pastes #234378 Raw Edit

Unnamed

public text v1 · immutable
·published 2006-11-02 14:14 UTC
rendered paste body
if(strcmp(cmd, "/r", true) == 0) {
	    new tmp[256];
		tmp = strrest(cmdtext, idx);

		if(!strlen(tmp)) {
			SendPlayerFormattedText(playerid,"Write message",0);
			return 1;
		} 
	if (gTeam[playerid] == TEAM_CIVILLIAN) {
        SendPlayerFormattedText(playerid,"The police radio is for cops only",0);
        return 1;
	}else {
		new senderName[MAX_PLAYER_NAME], stringg[256]
	for(new i=0; i<MAX_PLAYERS; i++)	{
	if ((IsPlayerConnected(i)) && (gTeam[i] == TEAM_COP)) {
			format(string, sizeof(stringg),"[Police Radio] %s: %s", senderName, tmp);
			SendClientMessage(i, COLOR_BLUE, stringg);
		}
}
}
		return 1;
}