Active System
#1

Код:
enum activeINFO
{
	aname[24],
	ainfo[128],
	aid,
	ainterior,
	avw,
	aweapon
}

new active[][activeINFO] =
{
	{"Mini Active", ".Minigun-бфтймеъ же ъмзое брщч д", 1, 0, ACTIVE_FOOT_VIRTUAL_WORLD, 38},
	{"Sawn Active", ".SawnOff-бфтймеъ же ъмзое брщч д", 2, 0, ACTIVE_FOOT_VIRTUAL_WORLD, 26}
};
new activecount, bool:activeon, activetimer, activeid, activeamout, activeplayers, bool:activestart;
Код:
	if(!strcmp(cmd, "/StartActive", true))
	{
	    if(!AdminLevel(playerid)) return SendClientMessage(playerid, color_gray, "ERROR: фчегд магойрйн бмбг");
	    if(activeon) return SendClientMessage(playerid, color_gray, "ERROR: йщ лбш фтймеъ оефтмъ");
		cmd = strtok(cmdtext, idx);
		tmp = strtok(cmdtext, idx);
		if(!strval(tmp) || !strval(cmd)) return SendClientMessage(playerid, color_gray, "HINT: /StartActive [ID] [Amout]");
		activeid = active[strval(cmd)][aid];
		activeamout = strval(tmp);
		SendFormatMessageToAll(color_orange, message, "~ дефтмд %s дфтймеъ ~",  active[activeid][aname]);
		SendFormatMessageToAll(color_white, message, "* дфтйм аъ дфтймеъ %s дагойп", getname[playerid]);
		SendClientMessageToAll(color_white, "/Join - йщ 20 очеоеъ фреййн бмбг - лгй мдцишу дчщ");
		SendFormatMessageToAll(color_red, message, "* %s {FFFFFF}:джелд йжлд б", PSIK(activeamout));
		activecount = 45;
		activeplayers = 0;
		activeon = true;
		activetimer = SetTimerEx("OnActiveStatusOn", 1000, false, "i", activecount);
		return SendClientMessageToAll(color_orange, "~ фтймеъ ~");
	}
How i will connect between the active[XXXX][aid] to the command...
Reply
#2

UP..
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)