Problem(error/warning): uđem na srv i kucam /makeleader ono standard id igraca i org sve nap kako treba i server pada u tom trenutku znaci pada odma
Dio skripte: [ pawn ]YCMD:makeleader(playerid, params[],help)
{
#pragma unused help
if(UlogovanProvera == 0) return Error(playerid, "Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo < 4) return Error(playerid, "Niste ovlasceni!");
if(PlayerInfo == 0) return Error(playerid, "Vi niste zaduzeni za ovu funciju");
new target, factionid, string;
if(AdminDuty == 0) return Error(playerid, "Morate biti na admin duznosti!");
if(sscanf(params, "ud", target, factionid))
{
Cmd(playerid, "/makeleader (playerid) (orgid)");
SCM(playerid, -1, "1: Police Department | 2: Federal Bureau of Investigation | 3: La Cosa Nostra | 4: Russian Mafia | 5: Yakuza");
SCM(playerid, -1, "6: Grove Street Family | 7: Ballas | 8: AMKBike | 9: News");
return true;
}
if(factionid < 0 || factionid > 9) return Error(playerid, "Ne mozete ici ispod 0 i vise od 9!");
if(!IsPlayerConnected(target)) return Error(playerid, "Pogresan ID (Nije Online)!");
if(factionid == PlayerInfo) return Error(playerid, "Taj igrac je vec lider te organizacije!");
if(factionid == 0)
{
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 0;
PlayerInfo = 60;
SetPlayerSkin(target,PlayerInfo);
SCMF(playerid,-1,""COL_BE" "BELA"Admin %s vam je skinuo lidera organizacije!",GetName(playerid));
format(string, sizeof(string), ""COL_BE" "BELA"Skinuli ste lidera igracu %s!",GetName(target));
SCM(playerid, -1, string);
format(string, sizeof(string), ""ZUTA" Admin %s je skinuo lidera organizacije %s-u.",GetName(playerid), GetName(target));
SendAdminMessage(-1, string);
return true;
}
PlayerInfo = factionid; PlayerInfo = factionid; PlayerInfo = 6;
if(factionid == 1) { PlayerInfo = 283; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/1.txt", io_write); fwrite(log, text);fclose(log); } // LAPD
else if(factionid == 2) { PlayerInfo = 286; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/2.txt", io_write); fwrite(log, text);fclose(log); } // FBI
else if(factionid == 3) { PlayerInfo = 126; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/3.txt", io_write); fwrite(log, text);fclose(log); } // LA COSA NOSTRA
else if(factionid == 4) { PlayerInfo = 113; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/4.txt", io_write); fwrite(log, text);fclose(log); } // RUSSIAN MAFIA
else if(factionid == 5) { PlayerInfo = 221; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/5.txt", io_write); fwrite(log, text);fclose(log); } // Yakuza
else if(factionid == 6) { PlayerInfo = 271; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/6.txt", io_write); fwrite(log, text);fclose(log); } // GROVE STREET FAMILY
else if(factionid == 7) { PlayerInfo = 296; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/7.txt", io_write); fwrite(log, text);fclose(log); } // BALLAS
else if(factionid == 😎 { PlayerInfo = 123; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/8.txt", io_write); fwrite(log, text);fclose(log); } // AMKBike
else if(factionid == 9) { PlayerInfo = 295; new text; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/9.txt", io_write); fwrite(log, text);fclose(log); } // NEWS
SetPlayerSkin(target, PlayerInfo);
SCMF(playerid,-1,""COL_BE" "BELA"Admin %s vam je dao lidera organizacije %s!",GetName(playerid),ImeOrganizacije(factionid));
format(string, sizeof(string), ""COL_BE" "BELA"Dali ste lidera igracu %s!",GetName(target));
SCM(target, -1, string);
format(string, sizeof(string), ""ZUTA" Admin %s je dao lidera %s-u organizacije %s.",GetName(playerid), GetName(target), ImeOrganizacije(factionid));
SendAdminMessage(-1, string);
PlayerTextDrawSetPreviewModel(target, INFO, PlayerInfo);
PlayerTextDrawShow(target, INFO);
return true;
}[ /pawn ]
/makeleader
374
pregleda
3
postova
22. Jun 2018.
Da li imas folder Lideri u scriptfiles .. Ako nemas to bi mogao biti jedan razlog zbog rusenja servera.
Ovo return true; zamjeni sa return 1;
i skini ovaj plugin vidi sta ce ti ispisati
http://forum.sa-mp.com/showthread.php?t=249226
Ovo return true; zamjeni sa return 1;
i skini ovaj plugin vidi sta ce ti ispisati
http://forum.sa-mp.com/showthread.php?t=249226
Morate biti prijavljeni da biste odgovorili na ovu temu.
Prijava