if(strcmp(cmdtext, "/healall", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo >= 4)
{
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(IsPlayerConnected(i))
{
if (IgracInfo == 1)
{
SendClientMessageToAll(COLOR_LIGHTGREEN, "AdmCmd: ÀäìèÃèñòðà òîð ãè èçëå÷è ñèòå èãðà ÷è Ãà ñåðâåðîò.");
SetPlayerHealth(i, 100);
}
if (IgracInfo == 2)
{
SendClientMessageToAll(COLOR_LIGHTGREEN, "AdmCmd: Administrator je izlecio sve igrace na serveru.");
SetPlayerHealth(i, 100);
}
if (IgracInfo == 3)
{
SendClientMessageToAll(COLOR_LIGHTGREEN, "AdmCmd: Administrator has heal all players on server.");
SetPlayerHealth(i, 100);
}
}
}
}
else
{
if (IgracInfo == 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "ÃÃ¥ ñòå à äìèÃèñòðà òîð ñî Ãèâî 4!");
}
if (IgracInfo == 2)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste administrator level 4!");
}
if (IgracInfo == 3)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not a admin level 4!");
}
}
}
else
{
if (IgracInfo == 1)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "ÃÃ¥ ñòå Ãà ¼à âåÃè.");
}
if (IgracInfo == 2)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "Niste logirani.");
}
if (IgracInfo == 3)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You are not logged.");
}
}
return 1;
}zasto spama
1,077
pregleda
6
postova
23. Jul 2010.
zasto kad upisem ovu komandu ispise toliko puta da sam olecio sve igrace koliko ima igrace na serveru
25. Jul 2010.
LordShigi wrote on July 25, 2010, 8:29 am:
Jer si stavio SendClientMessageToAll, a trebas "SendClientMessage(i,COLOR_LIGHTGREEN, "AdmCmd: Administrator je izlecio sve igrace na serveru.");"
KRIVO!!!
SendClientMessage on ce onda poslati tu poruku samo onom ko je upisao /healall
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava