Active System - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Active System (
/showthread.php?tid=455846)
Active System -
AfikAtashga - 03.08.2013
Код:
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...
Re: Active System -
AfikAtashga - 04.08.2013
UP..