[HELP] CMD:CC - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] CMD:CC (
/showthread.php?tid=631365)
[HELP] CMD:CC -
ThomasEvil - 28.03.2017
Everywhere iam looking for CMD clearchart i found only this
Код:
CMD:cc( playerid, params[ ] )
{
for(new i = 0; i < 100; i++) SendClientMessageToAll(0, " ");
return 1;
}
The problem is that it work only for 1 line.
So when i use /cc its same like if i type 1 blank message...
Not 100.
Any idea?
Re: [HELP] CMD:CC -
ISmokezU - 28.03.2017
Really? Weird because i've the same thing.
Try:
PHP код:
for(new i = 0; i < 100; ++i) SendClientMessageToAll(-1, "");
Re: [HELP] CMD:CC -
ThomasEvil - 28.03.2017
Quote:
Originally Posted by ISmokezU
Try:
PHP код:
for(new i = 0; i < 100; ++i) SendClientMessageToAll(-1, "");
|
I just copied this and i have still the same problem..
The wierd thing is that when i use:
Код:
CMD:cc( playerid, params[ ] )
{
SendClientMessageToAll(-1, " ");
SendClientMessageToAll(-1, " ");
SendClientMessageToAll(-1, " ");
// ... more (100)
return 1;
}
i still have the same problem.
What is it?
Re: [HELP] CMD:CC -
Toroi - 28.03.2017
Perhaps your server has an anti-flood function?
Re: [HELP] CMD:CC -
ThomasEvil - 28.03.2017
Not really,
i watched for it to be sure but i know i did not make any anti-flood and i write my mode from 0.
Re: [HELP] CMD:CC -
ThomasEvil - 28.03.2017
Didn't help me at all :/ Why the normal code i posted doesn't work?
Re: [HELP] CMD:CC -
ThomasEvil - 29.03.2017
Anyone?
Why this is not working ?
Код:
for(new i = 0; i < 100; ++i) SendClientMessageToAll(-1, "");
Re: [HELP] CMD:CC -
Dayrion - 29.03.2017
pawn Код:
for(new i; i < 25; i++)
SendClientMessageToAll(-1, "");
instead of
Код:
for(new i = 0; i < 100; ++i) SendClientMessageToAll(-1, "");
doens't work too?
Re: [HELP] CMD:CC -
AidanRO - 29.03.2017
pawn Код:
CMD:clearchat( playerid, params[ ] ){
for( new i = 0; i < 20; i++ ){ // 20 because that's the maximum amount of chat-lines and sending more messages than intended would be useless
SendClientMessageToAll( -1, "" ) ;
}
return 1 ;
}
Re: [HELP] CMD:CC -
RGOWNER - 29.03.2017
PHP код:
CMD:cc(playerid, params[])
{
if(!IsPlayerAdmin(playerid)) return 0;
for (new c = 0; c < 100; c++) SendClientMessageToAll(0, "");
SendClientMessageToAll(0x0000BBAA, "~ An admin has cleared the server chat.");
return 1;
}