forward Count(playerid);
CMD:szamolj(playerid)
{
SetPVarInt(playerid, \"CountState\", 9);
GameTextForPlayer(playerid, \"Visszaszamlalas: 10\", 1000, 4);
new t = SetTimerEx(\"Count\", 1000, true, \"d\", playerid);
SetPVarInt(playerid, \"CountTimer\", t);
}
public Count(playerid)
{
new cstate = GetPVarInt(playerid, \"CountState\"), countstr[32];
SetPVarInt(playerid, \"CountState\", cstate-1);
format(countstr, 32, \"Visszaszamlalas: %d\", cstate);
GameTextForPlayer(playerid, countstr, 1000, 4);
if(!cstate) KillTimer(GetPVarInt(playerid, \"CountTimer\"));
}