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: spawn..
1. [INNE] Spawn..
Siema,
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;
}