[Pomoc] Komanda /cc

Započeo Vikkkeeecc, Decembar 26, 2011, 23:07:56 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 3 gostiju pregledaju ovu temu.

Skripta koju koristim: GF
Detaljan opis problema: Znači, jednostavna komanda za čišćenje chata... Neželi ju compile, neznam gdje griješim...
Dio skripte:

    if (strcmp("/cc", cmdtext, true, 10) == 0)
        if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1)
    {
    SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
    SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
    SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "  {00C0FF}Admin %s {FFAA00}| {FFFFFF}je počistio chat  ", sendername);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessageToAll(0xFFFFFFAA, "  {FFAA00}www.urban-samp.info {FFFFFF}| {00C0FF}UrbanGaming RolePlay/DM server  ");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //
Stay hungry, Stay foolish  :)

lakse ti ovako

CMD:cc(playerid, params[])
{
if(PlayerInfo[playerid][pAdmin] >= 1)
{
new ccMsg[256];
                new sendername[MAX_PLAYER_NAME];
for(new chat = 0; chat <= 100; chat++)
SendClientMessageToAll(0x000000FF, " ");
               GetPlayerName(playerid, sendername, sizeof(sendername));
format(ccMsg, sizeof(ccMsg),"Admin | %s je pobrisao chat.", sendername);
SendClientMessageToAll(-1, ccMsg);
SendClientMessageToAll(-1, "asd.");
return 1;
}
else SendClientMessage(playerid, -1, "bla bal ne mozes koristi to ");
return 1;
}

Poslednja Izmena: Decembar 26, 2011, 23:19:06 POSLE PODNE od incluDe.

Citat: [UG] Viktor poslato Decembar 26, 2011, 23:07:56 POSLE PODNE
Skripta koju koristim: GF
Detaljan opis problema: Znači, jednostavna komanda za čišćenje chata... Neželi ju compile, neznam gdje griješim...
Dio skripte:

   if (strcmp("/cc", cmdtext, true, 10) == 0)
       if ((IsPlayerAdmin(playerid)) || PlayerInfo[playerid][pAdmin] >= 1)
   {
   SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
   SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
    SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
SendClientMessageToAll(0x000000AA, " ");
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "  {00C0FF}Admin %s {FFAA00}| {FFFFFF}je počistio chat  ", sendername);
SendClientMessageToAll(COLOR_WHITE, string);
SendClientMessageToAll(0xFFFFFFAA, "  {FFAA00}www.urban-samp.info {FFFFFF}| {00C0FF}UrbanGaming RolePlay/DM server  ");
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //

skloni tolike SCM-ove -.-

stavi ovo umesto njih

    for(new chat = 0; chat <= 50; chat++)
SendClientMessageToAll(boja neka, " ");


vidi da li ćeš onda imati errore
Poslednja Izmena: Decembar 26, 2011, 23:18:10 POSLE PODNE od [TX] Talavander
Kada muškarac priča ženi bezobrazne stvari, to je seksualno uznemiravanje…
A kada žena to radi muškarcu to je 2 eura+PDV po minuti. :D

pa eno ti isto to gore nebi da nezna iz zcmd prebacit u obicno :P