new count[MAX_PLAYERS];
new Tajmer[MAX_PLAYERS];
CMD:start(playerid)
{
Tajmer[playerid] = SetTimerEx(\"Timerke\",1000,1,\"i\",playerid);
return 1;
}
forward Timerke(playerid);
public Timerke((playerid)
{
new string[128];
if(count[playerid] == 100)
{
format(string,sizeof(string),\"%d/100\",count[playerid]);
SendClientMessage(playerid,-1,string);
KillTimer(Tajmer[playerid]);
count[playerid] = 0;
}
else
{
count[playerid]++;
format(string,sizeof(string),\"%d/100\",count[playerid]);
SendClientMessage(playerid,-1,string);
}
return 1;
}
Megcsináltam neked SendClientMessage-be! Remélem tudni fogod tovább.
new count[MAX_PLAYERS];
new Tajmer[MAX_PLAYERS];
CMD:start(playerid)
{
Tajmer[playerid] = SetTimerEx(\"Timerke\",1000,1,\"i\",playerid);
return 1;
}
forward Timerke(playerid);
public Timerke((playerid)
{
new string[128];
if(count[playerid] == 100)
{
format(string,sizeof(string),\"%d/100\",count[playerid]);
SendClientMessage(playerid,-1,string);
KillTimer(Tajmer[playerid]);
count[playerid] = 0;
}
else
{
count[playerid]++;
format(string,sizeof(string),\"%d/100\",count[playerid]);
SendClientMessage(playerid,-1,string);
}
return 1;
}
forward p_count(playerid, start, end, repeating); // ide írhatnák nevet de minek? :D
public p_count(playerid, start, end, repeating)
{
new
str[32];
format(str, sizeof str,\"%d/%d\", start, end);
SendClientMessage(playerid, -1, str); // print(str);
if(start < end) SetTimerEx(\"p_count\", repeating, false, \"dddd\", playerid, ++start, end, repeating);
return 1;
}