Wysłany: 2013-05-20, 19:13
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
Wysłany: 2013-05-20, 20:04
IgrexolonO
Wiek: 34 Na forum: 6810 dni Posty: 1386
Piwa : 1062
"Rejmunt" napisał/a :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
Wnioskuj?, ?e nie doda?e? do komendy ustawiania skina, pozdrawiam!
Wysłany: 2013-05-20, 20:08
Maxvell
d_b
Wiek: 26 Na forum: 4771 dni Posty: 83
Nick w MP: Kotlet
Piwa : 270
Tu masz kod i zobacz
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;
}
Tagi: spawn
Anonymous
Na forum: 245 dni
Posty: 1
Anonymous Koniecznie zajrzyj na: