Balkan SA:MP

PAWN skriptanje, gamemodovi, filterskripte, include fajlovi, mape, pluginovi => Razgovor u vezi PAWN - skriptanja => Temu započeo: |LOB| Robi.pwn poslato April 25, 2013, 00:42:23 PRE PODNE

Naslov: [Pomoc]Komande
Poruka od: |LOB| Robi.pwn poslato April 25, 2013, 00:42:23 PRE PODNE
Skripta koju koristim:Moj gm od 0
Detaljan opis problema:Pa ovako znaci pokusavao sam nesto napraviti ali nece:S znaci trebao bih ovako
Komandu za Admin Chat

Dio sa kojom bih u ovoj komandi dodavalo ispod svega "Administirator Ime_Prezime je obrisao chat"
CMD:cc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,-1,"{FF0000}[Greska] Niste autorizirani za koriÅ¡tenje ove komande!");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    return 1;
}


Pa ako bih neko bio voljan pomoci jel namucio sam se a nista:S
Dio skripte:
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Naslov: Odg: [Pomoc]Komande
Poruka od: Mikiâ„¢ poslato April 25, 2013, 00:55:32 PRE PODNE
Cekaj ti oces u da ubacis da ti posle ispise Admin taj i taj je obrisao chat? Ak oces tako:
new string[128]; //u komandu
new admin[MAX_PLAYER_NAME]; GetPlayerName(playerid, admin, sizeof(admin));//u komandu
format(string, sizeof(string), "*Admin %s je obrisao chat.", admin);//u komandu
SendClientMessageToAll(-1, string);//u komandu

SendClientMessageToAll stavi posle svih ovih praznih.
Naslov: Odg: [Pomoc]Komande
Poruka od: |LOB| Robi.pwn poslato April 25, 2013, 01:05:10 PRE PODNE
Ovako mislis?
CMD:cc(playerid, params[])
{
    new string[128]; //u komandu
new admin[MAX_PLAYER_NAME]; GetPlayerName(playerid, admin, sizeof(admin));//u komandu
format(string, sizeof(string), "*Admin %s je obrisao chat.", admin);//u komandu
SendClientMessageToAll(-1, string);//u komandu
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,-1,"{FF0000}[Greska] Niste autorizirani za koriÅ¡tenje ove komande!");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    return 1;
}

Obrise ali nepokaze tko je obrisao
Naslov: Odg: [Pomoc]Komande
Poruka od: Blaeks poslato April 25, 2013, 01:16:57 PRE PODNE
CMD:cc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,-1,"{FF0000}[Greska] Niste autorizirani za koriÅ¡tenje ove komande!");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
new string[27 + MAX_PLAYER_NAME]; //u komandu
new admin[MAX_PLAYER_NAME]; GetPlayerName(playerid, admin, sizeof(admin));//u komandu
format(string, sizeof(string), "*Admin %s je obrisao chat.", admin);//u komandu
SendClientMessageToAll(-1, string);//u komandu
    return 1;
}
Naslov: Odg: [Pomoc]Komande
Poruka od: Mikiâ„¢ poslato April 25, 2013, 09:34:00 PRE PODNE
Mislim kako je blaeks stavio. :)
Naslov: Odg: [Pomoc]Komande
Poruka od: |LOB| Robi.pwn poslato April 25, 2013, 11:26:34 PRE PODNE
obrise ali nepokaze tko je obrisao
Naslov: Odg: [Pomoc]Komande
Poruka od: Blaeks poslato April 25, 2013, 11:29:12 PRE PODNE
CMD:cc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid,-1,"{FF0000}[Greska] Niste autorizirani za koriÅ¡tenje ove komande!");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
    SendClientMessageToAll(0xDEEE20FF, " ");
new string[27 + MAX_PLAYER_NAME]; //u komandu
format(string, sizeof(string), "*Admin %s je obrisao chat.", GetName(playerid));//u komandu
SendClientMessageToAll(-1, string);//u komandu
    return 1;
}
i na kraj skripte stock GetName(playerid)
{
    new string[24];
    GetPlayerName(playerid,string,24);
    new str[24];
    strmid(str,string,0,strlen(string),24);
    for(new i = 0; i < MAX_PLAYER_NAME; i++)
    {
        if (str[i] == '_') str[i] = ' ';
    }
    return str;
}
Naslov: Odg: [Pomoc]Komande
Poruka od: |LOB| Robi.pwn poslato April 25, 2013, 11:34:30 PRE PODNE
Opet isto:S
Naslov: Odg: [Pomoc]Komande
Poruka od: Mikiâ„¢ poslato April 25, 2013, 12:19:58 POSLE PODNE

CMD:cc(playerid, params[])
{
    if(PlayerInfo[playerid][pAdmin] < 1) return SCM(playerid, siva, "AdmCmd:Nisi ovlascen!");
if(PlayerInfo[playerid][pAdmin] >=1)
{
for(new chat = 0; chat <= 100; chat++)
SendClientMessageToAll(-1, " ");
SendClientMessageToAll(-1, " ");
SendClientMessageToAll(0xFF0000AA, "AdmCmd:Chat je obrisan od strane Admina!");
}
return 1;
}

Probaj tako.