18.12.2010, 22:55
Код:
#include <a_samp>
new string[256];
new Msg;
public OnFilterScriptInit()
{
print("bla");
Msg = 0;
SetTimer("GlobalAnnouncement",5000,true);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
forward GlobalAnnouncement();
public GlobalAnnouncement()
{
switch (Msg)
{
case 0: {
format(string, sizeof(string), "hostname asd4");
SendRconCommand(string);
Msg++;
}
case 1: {
format(string, sizeof(string), "hostname asd2");
SendRconCommand(string);
Msg++;
}
case 2: {
format(string, sizeof(string), "hostname asd3");
SendRconCommand(string);
Msg++;
}
case 3: {
format(string, sizeof(string), "hostname asd1");
SendRconCommand(string);
Msg = 0;
}
}
return 1;
}
Then serverlog says:
Код:
[01:54:19] Filter Scripts [01:54:19] --------------- [01:54:19] Loading filter script 'anno.amx'... [01:54:19] Unable to load filter script 'anno.amx'. [01:54:19] Loaded 0 filter scripts.
// nvm, i uploaded this FS to gamemodes folder. How i can be idiot.. Sorry.

