server unknow command
#1



V




Why not ?
Reply
#2

Код:
//---------------------------------------[mgov]-------------------------------//
	if(strcmp(cmd, "/as", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (PlayerInfo[playerid][pAdmin] < 1)
			{
		//		SendClientMessage(playerid, COLOR_GRAD5,"¤ШідБигЄибНґБФ№ дБиКТБТГ¶ѕЩґ ¤У·ХиўЦ鹵鹴йЗВбНґБФ№дґй !");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /as [text]");
				return 1;
			}
		//	format(string, sizeof(string), "((~{F60000}Admin{48E6F6}~ {F60000}%s{48E6F6}({48E6F6}%d{48E6F6}): {FFFFFF}%s{48E6F6} ))", sendername, playerid, result);
			format(string, sizeof(string), "Admin %s: %s", sendername, result);
			SendClientMessageToAll(0xF60000AA, string);
		}
		return 1;
	}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)