Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.
GTAONLINE.PL
Tematy otagowane jako: /dodaj_
1. [INNE] Frakcje są ale nie dziala /dodaj_
Siemka razem z koleg? robimy gm od 0 zrobili?my frakcje wszystko normalnie dzia?a.
Ale, nie dzial komenda dodaj_frakcja [nick]

Jest troche lipa bo bez tego nie ma frakcji w mapce jest taki kod :

[code] }
return 1;
}

//-----------------DODAJ I ODBIERZ

/////////////////////POLICJA
if(strcmp(cmd, "/dodaj_policja", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /dodaj_policja [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "Gracz %s zostal dodany do Policji!", string);
SendClientMessage(playerid, ZIELONY, string2);
string = strtok(cmdtext, idx);
dini_Set(POLICJA, nick, "1");
return 1;
}

if(strcmp(cmd, "/usun_policja", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /usun_policja [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "Gracz %s zostal zwolniony z Policji!", string);
SendClientMessage(playerid, ZIELONY, string2);
string = strtok(cmdtext, idx);
dini_Set(POLICJA, nick, "0");
return 1;
}
////////////////////SG
if(strcmp(cmd, "/dodaj_sg", true) == 0 && IsPlayerAdmin(playerid)){
new string2[256];
string = strtok...