Admin komanda /clearchat [TRAZIM]

Započeo FullSlaSh, Mart 25, 2010, 13:31:05 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Znaci treba mi komanda koja ce cistiti chat igraca, i treba mi mali tutorial kako da je ubacim
HVALA!

if(strcmp(cmdtext,"/cc",true)==0)
    {
       if(IsPlayerConnected(playerid))
       {
                 if (PlayerInfo[playerid][pAdmin] >= 1||PlayerInfo[playerid][pGameMaster] >= 2)
                 {

        SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
        SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
    SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_GREEN,"_________________________________________________________________ ");
SendClientMessageToAll(COLOR_LIGHTGREEN,"                            Chat ociscen od Admina/GameMastera ");
SendClientMessageToAll(COLOR_LIGHTGREEN,"                                             [url=http://www.balkan-samp.com]www.balkan-samp.com[/url]     ");
SendClientMessageToAll(COLOR_GREEN,"_________________________________________________________________ ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
SendClientMessageToAll(COLOR_WHITE," ");
return 1;

             }
             else
             {
              SendClientMessage(playerid, COLOR_GRAD1, "   Nisi Admin !");
             }
      }
       return 1;
}


samo negdje u skriptu, ako ne radi javi mi na PM
Poslednja Izmena: Mart 25, 2010, 13:34:41 POSLE PODNE od Weite Tucker


pomoc xD
C:\Documents and Settings\ismar\Desktop\SAMP SERVER\GTARP\gamemodes\gtarp.pwn(12700) : error 017: undefined symbol "pGameMaster"
C:\Documents and Settings\ismar\Desktop\SAMP SERVER\GTARP\gamemodes\gtarp.pwn(12700) : warning 215: expression has no effect
C:\Documents and Settings\ismar\Desktop\SAMP SERVER\GTARP\gamemodes\gtarp.pwn(12700) : error 001: expected token: ";", but found ")"
C:\Documents and Settings\ismar\Desktop\SAMP SERVER\GTARP\gamemodes\gtarp.pwn(12700) : error 029: invalid expression, assumed zero
C:\Documents and Settings\ismar\Desktop\SAMP SERVER\GTARP\gamemodes\gtarp.pwn(12700) : fatal error 107: too many error messages on one line

Compilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase


4 Errors.

Umjesto toga stavi ovo nasao sam ti te errore:


if(strcmp(cmd, "/cc", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
for(new i = 0; i <= 200; i++)
{
SendClientMessageToAll(COLOR_RED,"         ");
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessageToAll(COLOR_RED, "_____________________________________");
format(string, sizeof(string), " Admin %s je očistio chat.", sendername);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessageToAll(COLOR_RED, "_____________________________________");
return 1; }
}
MAP:

[MAP]Mall Caffe Bar
[MAP]Predsjednikova kuća
[MAP]Zatvor






Respect: Correlli, Momak, Zic, Nik, Blood, Neno, joxy, Hawks, Soprano ...

Citat: CroSector | Tequila poslato Mart 25, 2010, 15:06:46 POSLE PODNE
Umjesto toga stavi ovo nasao sam ti te errore:


if(strcmp(cmd, "/cc", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
for(new i = 0; i <= 200; i++)
{
SendClientMessageToAll(COLOR_RED,"         ");
}
GetPlayerName(playerid, sendername, sizeof(sendername));
SendClientMessageToAll(COLOR_RED, "_____________________________________");
format(string, sizeof(string), " Admin %s je očistio chat.", sendername);
SendClientMessageToAll(COLOR_RED, string);
SendClientMessageToAll(COLOR_RED, "_____________________________________");
return 1; }
}

Radi perfektno, svaka cast ipak sam ja pocetnik u vezi skriptanja.
HVALA

Citat: FullSlaSh poslato Mart 25, 2010, 15:20:18 POSLE PODNE

Radi perfektno, svaka cast ipak sam ja pocetnik u vezi skriptanja.
HVALA


NP
MAP:

[MAP]Mall Caffe Bar
[MAP]Predsjednikova kuća
[MAP]Zatvor






Respect: Correlli, Momak, Zic, Nik, Blood, Neno, joxy, Hawks, Soprano ...

r4z0r

Nisu ti pgamemaster i pAdmin definirani , skontaj sam nesto :P
Sve rjeseno , lockich .