01.12.2013, 19:25
so i made a point war to capture it i put
in top
and a time count
so my problem is when i run this code it spaming
No ONe Could Capture Point
in top
Код:
new StartWar=2*60; new PointCount=0;
Код:
CMD:cap(playerid, params[])
{
capture[playerid]=1;
}
Код:
SetTimer("cap1",1000,1);
Код:
public cap1()
{
if (StartWar==0){
PointCount=30;
SendClientMessageToAll(-1,"Point Is Ready To cap");
}
foreach(new i: Player)
{
if(PointCount ==1 && capture[i]==1)
{
SendClientMessageToAll(-1,"PlayerA Has Captured The point");
}
else
{
SendClientMessageToAll(-1,"No ONe Could Capture Point");
}
}
}
No ONe Could Capture Point

