Maxvell
d_b
Wiek: 26 Na forum: 4771 dni Posty: 83
Nick w MP: Kotlet
Piwa : 270
Siema,
[you]
mam problem zrobilem now? frakcje wszystko jest dobrze napisane ale jak wpisuje /dodaj_sg nick to mi pisze ze zostalem przyjety ale skina nie mam prosze o Pomoc! dam Piwo
Tu jest kod:
Kod: if(strcmp(cmd, "/dodaj_sg", true) == 0){
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,"Maziolek",true)==0 || strcmp(name,"NAZWA",true)==0){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /dodaj_sg [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "Gracz %s zostal dodany do Strazy Granicznej!", string);
SendClientMessage(playerid, ZIELONY, string2);
string = strtok(cmdtext, idx);
dini_Set(SG, nick, "1");
}
return 1;
}
//usun sg
if(strcmp(cmd, "/usun_sg", true) == 0){
GetPlayerName(playerid, name, sizeof(name));
if(strcmp(name,"Maziolek",true)==0 || strcmp(name,"NAZWA",true)==0){
new string2[256];
string = strtok(cmdtext, idx);
if(!strlen(string)) {
SendClientMessage(playerid, COLOR_YELLOW, "Wpisz: /usun_sg [nick]");
return 1;
}
new nick[256];
nick = string;
format(string2, sizeof(string2), "Gracz %s zostal usuni?ty z Strazy Granicznej!", string);
SendClientMessage(playerid, ZIELONY, string2);
string = strtok(cmdtext, idx);
dini_Set(SG, nick, "0");
}
return 1;
}