06.10.2010, 08:10
pawn Код:
forward forcedtochange(playerid);
new storedforcedmode[41];
COMMAND:forcemode(playerid, params[])
{
if (PlayerInfo[playerid][pAdminLevel] >=3)
{
new text[40];
if (sscanf(params, "s[40]",text))
{
SendClientMessage(playerid, COLOR_GOLD, "Usage: /forcemode <modename>"); return 1;
}
format(storedforcedmode, sizeof(storedforcedmode), "changemode %s",text);
SetTimer("forcedtochange", 535000,0);
}
return 1;
}
public forcedtochange(playerid)
{
SendRconCommand(storedforcedmode);
return 1;
}