Skripta koju koristim:Ravens RP
Detaljan opis problema:Kad kucam /cc servermi se restarta
Dio skripte:if(strcmp(cmd, "/cc", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo < 4)
{
SendClientMessage(playerid, COLOR_GREY, "You are not authorized to use that command.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
ClearChatbox(i, 100);
SendClientMessageToAll(COLOR_LIGHTBLUE, "%s je Ocistio Chat", sendername);
SendClientMessageToAll(COLOR_ORANGE, "WWW.Balkan-Nations.ForumHr.Com");
format(string, sizeof(string), ": %s has Cleared the Chat", sendername);
ABroadCast(COLOR_LIGHTRED,string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Cleared the Chat",d,m,y,h,mi,s,sendername);
ChatLog(string);
AdminLog(string);
}
return 1;
}
Neke slike/video za lakse dobivanje pomoci(neobavezno):
[pomoc]/cc
1,073
pregleda
12
postova
27. Apr. 2011.
if(strcmp(cmd, "/cc", true) == 0) // By CuervO_NegrO
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo < 4)
{
SendClientMessage(playerid, COLOR_GREY, "Nisi u mogucnosti koristiti ovu komandu.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
ClearChatbox(i, 100);
SendClientMessageToAll(COLOR_LIGHTBLUE, "Chat je obrisan!");
format(string, sizeof(string), ": %s je obrisao Chat", sendername);
ABroadCast(COLOR_LIGHTRED,string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Cleared the Chat",d,m,y,h,mi,s,sendername);
ChatLog(string);
AdminLog(string);
}
return 1;
}
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo < 4)
{
SendClientMessage(playerid, COLOR_GREY, "Nisi u mogucnosti koristiti ovu komandu.");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
ClearChatbox(i, 100);
SendClientMessageToAll(COLOR_LIGHTBLUE, "Chat je obrisan!");
format(string, sizeof(string), ": %s je obrisao Chat", sendername);
ABroadCast(COLOR_LIGHTRED,string, 5);
new y, m, d;
new h,mi,s;
getdate(y,m,d);
gettime(h,mi,s);
format(string,sizeof(string), "(%d/%d/%d)[%d:%d:%d] %s Has Cleared the Chat",d,m,y,h,mi,s,sendername);
ChatLog(string);
AdminLog(string);
}
return 1;
}
27. Apr. 2011.
evo ovako je moja
na vrh
CMD:cc(playerid, params[])
{
if(PlayerInfo < 4)
ClearChat(15);
return 1;
}
ili u CMD: if(strcmp(cmd, "/cc", true) == 0)
{
if(PlayerInfo < 4)
ClearChat(15);
return 1;
}
na vrh
#define ClearChat(%0) for(new l; l < %0; l++) SendClientMessageToAll(-1, " ")
#define ClearChatForPlayer(%0,%1) for(new l; l < %1; l++) SendClientMessage(%0, -1, " ")CMD:cc(playerid, params[])
{
if(PlayerInfo < 4)
ClearChat(15);
return 1;
}
ili u CMD: if(strcmp(cmd, "/cc", true) == 0)
{
if(PlayerInfo < 4)
ClearChat(15);
return 1;
}
27. Apr. 2011.
eXtreme wrote on April 27, 2011, 2:24 pm:
@System nevalja...
CMD:cc(playerid, params[])
{
if(PlayerInfo >= 4)
{
ClearChat(100);
}
return 1;
}
CMD:cc(playerid, params[])
{
if(PlayerInfo >= 4)
{
ClearChat(100);
}
return 1;
}
a lol sta si ti napravio da brise samo adminima lvl 4 pa nadalje chat... umjesto obratno...
if(PlayerInfo < 4)27. Apr. 2011.
if(strcmp(cmd, "/cc",1)==0)
{
new p=GetMaxPlayers();
if(PlayerInfo < 4) return SendClientMessage(playerid,-1,"Niste administrator lvl 4 +");
for(new i=0;i SendClientMessageToAll(-1,"Administrator je obrisao chat!");
return true;
}
27. Apr. 2011.
Evo
if(strcmp(cmd, "/cc",1)==0)
{
new p=GetMaxPlayers();
if(PlayerInfo < 1) return SendClientMessage(playerid,-1,"Niste administrator lvl 1 +");
for(new i=0;i
if(strcmp(cmd, "/cc",1)==0)
{
new p=GetMaxPlayers();
if(PlayerInfo < 1) return SendClientMessage(playerid,-1,"Niste administrator lvl 1 +");
for(new i=0;i
SendClientMessageToAll(-1,"%s je obrisao chat!", sendername);
SendClientMessageToAll(-1,"Balkan-Nations.ForumHr.Com");
return true;
}
Ovo mi je komanda i opet kad je upisem,server se ugasi
27. Apr. 2011.
@FireMan Di ti je format, di ti je getplayername?
Evo onda;
Evo onda;
if(strcmp(cmd, "/cc",1)==0)
{
if(PlayerInfo < 4) return SendClientMessage(playerid,-1,"Niste administrator lvl 4 +");
new p=GetMaxPlayers();
for(new i=0;i new str,gp; GetPlayerName(playerid,gp,24);
format(str,128,"Administrator %s je obrisao chat",gp);
SendClientMessageToAll(-1,str);
return true;
}
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava