zasto spama

23. Jul 2010.
1,077
pregleda
6
postova
mariomako
5
Underboss
23. Jul 2010.
zasto kad upisem ovu komandu ispise toliko puta da sam olecio sve igrace koliko ima igrace na serveru
    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;
}
LordShigi
5
Crime Lord
25. Jul 2010.
Jer si stavio SendClientMessageToAll, a trebas "SendClientMessage(i,COLOR_LIGHTGREEN, "AdmCmd: Administrator je izlecio sve igrace na serveru.");"
DeFox
5
Underboss
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
LordShigi
5
Crime Lord
25. Jul 2010.
KRIVO!!!
Po cemu si to zakljucio. Ako nisi primjetio stavio sam umjesto "playerid" varijable "i" varijablu koja predstavlja id igraca na serveru u loopu.
DeFox
5
Underboss
25. Jul 2010.
sory ak sam nesto krivo reko pocetnik sam u skriptanju -.-'' sory
LordShigi
5
Crime Lord
25. Jul 2010.
Lol nista. Super, samo uci. Rekao sam "KRIVO!!!" jer sam tebe oponasao. Samo ti uci.

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha