Oko komande ycmd:bojatd za menjanje boje!

10. Okt. 2017. Zaključano
850
pregleda
3
postova
Ademii
4
Made Man
10. Okt. 2017.
Skripta koju koristim:UP/LK
Detaljan opis problema:Napravio sam YCMD:colortd kada menjam boju tj. Ne menja se kada izadjem sa srw menja se boja tdove svim igracima kako da napradim da menja jednom igracu i da se menja odma boja
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //
YCMD:colortd(playerid, params[],help)
{
    #pragma unused help
    #pragma unused params
    new colortd;
if(UlogovanProvera == 0) return SCM(playerid,-1,""BELA"CRAYZ"SERVERBOJA"HOME ~ "SIVA"Moras se ulogovati da bi koristio ovu komandu!");
    if(sscanf(params, "s", colortd)) return SCM(playerid,-1,""BELA"/colortd [ Opcija - orange ,ljubicasta ,zelena,crvena ]");
    if(strcmp(colortd, "orange", true) == 0)
    {
        SetPlayerColor(playerid, 0xDBB132FF);
        TextDrawColor(InfoTD1, 0xDBB132FF);
        TextDrawColor(InfoTD3, 0xDBB132FF);
        TextDrawColor(Logo1, 0xDBB132FF);
        TextDrawColor(Textdraw0, 0xDBB132FF);
        TextDrawColor(Textdraw3, 0xDBB132FF);
        TextDrawColor(Textdraw4, 0xDBB132FF);
        TextDrawColor(Textdraw5, 0xDBB132FF);
        TextDrawColor(Textdraw6, 0xDBB132FF);
        TextDrawColor(Textdraw13, 0xDBB132FF);
    }
    else if(strcmp(colortd, "ljubicasta", true) == 0)
    {
        SetPlayerColor(playerid, 0x952E99FF);
        TextDrawColor(InfoTD1, 0x952E99FF);
        TextDrawColor(InfoTD3, 0x952E99FF);
        TextDrawColor(Logo1, 0x952E99FF);
        TextDrawColor(Textdraw0, 0x952E99FF);
        TextDrawColor(Textdraw3, 0x952E99FF);
        TextDrawColor(Textdraw4, 0x952E99FF);
        TextDrawColor(Textdraw5, 0x952E99FF);
        TextDrawColor(Textdraw6, 0x952E99FF);
        TextDrawColor(Textdraw13, 0x952E99FF);
    }
    else if(strcmp(colortd, "zelena", true) == 0)
    {
        SetPlayerColor(playerid, 0x298C31FF);
        TextDrawColor(InfoTD1, 0x298C31FF);
        TextDrawColor(InfoTD3, 0x298C31FF);
        TextDrawColor(Logo1, 0x298C31FF);
        TextDrawColor(Textdraw0, 0x298C31FF);
        TextDrawColor(Textdraw3, 0x298C31FF);
        TextDrawColor(Textdraw4, 0x298C31FF);
        TextDrawColor(Textdraw5, 0x298C31FF);
        TextDrawColor(Textdraw6, 0x298C31FF);
        TextDrawColor(Textdraw13, 0x298C31FF);
    }
    else if(strcmp(colortd, "crvena", true) == 0)
    {
        SetPlayerColor(playerid, 0xD62B2BFF);
        TextDrawColor(InfoTD1, 0xD62B2BFF);
        TextDrawColor(InfoTD3, 0xD62B2BFF);
        TextDrawColor(Logo1, 0xD62B2BFF);
        TextDrawColor(Textdraw0, 0xD62B2BFF);
        TextDrawColor(Textdraw3, 0xD62B2BFF);
        TextDrawColor(Textdraw4, 0xD62B2BFF);
        TextDrawColor(Textdraw5, 0xD62B2BFF);
        TextDrawColor(Textdraw6, 0xD62B2BFF);
        TextDrawColor(Textdraw13, 0xD62B2BFF);
    }
    else return SCM(playerid, -1, ""BELA"CRAYZ"SERVERBOJA"HOME ~ "SIVA"Nepoznato ime boje!");
    return 1;
}
ophion
5
OG Legend
10. Okt. 2017.
Napravio sam YCMD:colortd kada menjam boju tj. Ne menja se kada izadjem sa srw menja se boja tdove svim igracima

koji racku si ti sad rekao allaha ti
emerik771
4
Made Man
10. Okt. 2017.
S ovim ti mijenjas svima boju, a ako zelis posebno svakom igracu morat ces koristit player textdrawowe
http://wiki.sa-mp.com/wiki/PlayerTextDrawColor

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha