[REÅ ENO] Vozila

Započeo Keno_Caponee, Jun 18, 2016, 00:31:15 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: editovani altus
Detaljan opis problema:trazio po netu skripti ali kako da dodam jos jedan slot vozila
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://
Poslednja Izmena: Jun 18, 2016, 12:16:31 POSLE PODNE od â–… â–† â–ˆ Rudimental â–ˆ â–† â–…

imas od tonya sikore vozilo2 fs
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

Citat: ophion poslato Jun 18, 2016, 00:32:23 PRE PODNE
imas od tonya sikore vozilo2 fs

gdje t oda nadjem i imam jos jedan problem kada ocu da idem /makeleader padne srv skrooz

Citat: Keno_Caponee poslato Jun 18, 2016, 00:36:52 PRE PODNE
gdje t oda nadjem i imam jos jedan problem kada ocu da idem /makeleader padne srv skrooz

Daj tu cmd postavi da vidim nesto..

[pawn]YCMD:makeeleader(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""SPLAVA"[UG:RP]"BELA" Morate se ulogovati da bi koristili komande");
   if(PlayerInfo[playerid][pAdmin] < 6) return SCM(playerid,-1,""BELA""SPLAVA"[UG:RP]{FFFFFF} "SPLAVA"Samo Vlasnik!");
   new target, factionid, string[126];
   if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA""SPLAVA"[UG:RP]{FFFFFF} "SIVA"Morate biti na admin duznosti!");
   if(sscanf(params, "ud", target, factionid))
   {
      SCM(playerid,-1, ""SPLAVA""SPLAVA"[UG:RP]{FFFFFF} "CRVENA"/makeleader [ID/Ime] [ID Org]");
      SCM(playerid, -1,""SIVA"(ID:1). "SPLAVA"Beogradska Policija");
      SCM(playerid,-1,""SIVA"(ID:2). "SPLAVA"The Vinci Family");
      SCM(playerid,-1,""SIVA"(ID:3). "SPLAVA"Black Dragon Triads");
      SCM(playerid,-1,""SIVA"(ID:4). "SPLAVA"Grove Street Family");
      SCM(playerid,-1,""SIVA"(ID:5). "SPLAVA"Ballas");
      SCM(playerid,-1,""SIVA"(ID:6). "SPLAVA"Novinari");
      SCM(playerid,-1,""SIVA"(ID:7). "SPLAVA"Srpska Mafija");
      SCM(playerid,-1,""SIVA"(ID:8). "SPLAVA"FBI");
      SCM(playerid,-1,""SIVA"(ID:9). "SPLAVA"Ruska Mafija");
      SCM(playerid,-1,""SIVA"(ID:10). "SPLAVA"La Cosa Nostra");
      SCM(playerid,-1,""SIVA"(ID:11). "SPLAVA"Mara Salvatrucha 13");
      SCM(playerid,-1,""SIVA"(ID:12). "SPLAVA"Parking Servis");
      SCM(playerid,-1,""SIVA"(ID:13). "SPLAVA"Hitna Pomoc");
      SCM(playerid,-1,""SIVA"(ID:14). "SPLAVA"Los Surenos");
      SCM(playerid,-1,""SIVA"(ID:15). "SPLAVA"Taxi");
      SCM(playerid,-1,""SIVA"(ID:16). "SPLAVA"Night Racers");
      SCM(playerid,-1,""SIVA"(ID:17). "SPLAVA"Italy Ryders");
      SCM(playerid,-1,""SIVA"(ID:18). "SPLAVA"Corleone Family");
        SCM(playerid,-1,""SIVA"(ID:19). "SPLAVA"Monroe Family");
        SCM(playerid,-1,""SIVA"(ID:20). "SPLAVA"Vatrogasci");
      return 1;
   }
   if(factionid < 0 || factionid > 19) return SendClientMessage(playerid, -1, ""CRVENA""SPLAVA"[UG:RP]{FFFFFF} "SIVA"Nemozete ici ispod 0 i vise od 19!");
   if(!IsPlayerConnected(target)) return SendClientMessage(playerid, -1 ,""SIVA"Pogresan ID (Nije Online)!");
   if(factionid == PlayerInfo[target][pLider]) return SendClientMessage(playerid,-1, ""SIVA"[GRESKA] "CRVENA"Taj igrac je vec lider te organizacije!");
   if(factionid == 0)
   {
      PlayerInfo[target][pLider] = 0;
      PlayerInfo[target][pClan] = 0;
      PlayerInfo[target][pRank] = 0;
      PlayerInfo[target][pSkin] = 1;
      SetPlayerSkin(target,PlayerInfo[target][pSkin]);
      SCMF(target,-1,""SPLAVA""SPLAVA"[UG:RP]{FFFFFF} "BELA"Admin %s vam je skinuo lidera!",GetName(playerid));
      format(string, sizeof(string), ""SPLAVA""SPLAVA"[UG:RP]{FFFFFF} "BELA"Skinuli ste lidera igracu %s!", GetName(target));
      SendClientMessage(playerid, -1, string);
      format(string, sizeof(string), ""SPLAVA"INFO | "BELA"Admin %s je skinuo lidera organizacije %s.", GetName(playerid), GetName(target));
      AdminSupporter(-1, string);
      PlayerInfo[target][pProveraSpawna] = 1;
      return 1;
   }
   PlayerInfo[target][pLider] = factionid; PlayerInfo[target][pClan] = factionid; PlayerInfo[target][pRank] = 6;
   if(factionid == 1) { PlayerInfo[target][pSkin] = 283; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/1.txt", io_write); fwrite(log, text);fclose(log);  } //LS PD
   else if(factionid == 2) { PlayerInfo[target][pSkin] = 124; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/2.txt", io_write); fwrite(log, text);fclose(log); } //ITA MAFIA
   else if(factionid == 3) { PlayerInfo[target][pSkin] = 120; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/3.txt", io_write); fwrite(log, text);fclose(log); } //TRIADS
   else if(factionid == 4) { PlayerInfo[target][pSkin] = 271; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/4.txt", io_write); fwrite(log, text);fclose(log); } //GROVE
   else if(factionid == 5) { PlayerInfo[target][pSkin] = 296; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/5.txt", io_write); fwrite(log, text);fclose(log); } //BALLAS
   else if(factionid == 6) { PlayerInfo[target][pSkin] = 295; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/6.txt", io_write); fwrite(log, text);fclose(log); } //NOVINARI
   else if(factionid == 7) { PlayerInfo[target][pSkin] = 98; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/7.txt", io_write); fwrite(log, text);fclose(log); } //Srpska Mafija
   else if(factionid == 8) { PlayerInfo[target][pSkin] = 286; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/8.txt", io_write); fwrite(log, text);fclose(log); } // FBI
   else if(factionid == 9) { PlayerInfo[target][pSkin] = 113; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/9.txt", io_write); fwrite(log, text);fclose(log); } // Ruska Mafija
   else if(factionid == 10) { PlayerInfo[target][pSkin] = 223; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/10.txt", io_write); fwrite(log, text);fclose(log); } // La Cosa Nostra
   else if(factionid == 11) { PlayerInfo[target][pSkin] = 110; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/11.txt", io_write); fwrite(log, text);fclose(log); } // MS13
   else if(factionid == 12) { PlayerInfo[target][pSkin] = 16; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/12.txt", io_write); fwrite(log, text);fclose(log); } // Parking Servis
   else if(factionid == 13) { PlayerInfo[target][pSkin] = 70; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/13.txt", io_write); fwrite(log, text);fclose(log); } // Hitna Pomoc
   else if(factionid == 14) { PlayerInfo[target][pSkin] = 116; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/14.txt", io_write); fwrite(log, text);fclose(log); } // Hitna Pomoc
   else if(factionid == 15) { PlayerInfo[target][pSkin] = 259; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/15.txt", io_write); fwrite(log, text);fclose(log); } // Taxi
   else if(factionid == 16) { PlayerInfo[target][pSkin] = 181; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/16.txt", io_write); fwrite(log, text);fclose(log); } //Night Racers
   else if(factionid == 17) { PlayerInfo[target][pSkin] = 223; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/17.txt", io_write); fwrite(log, text);fclose(log); } //ITALY RYDERS
   else if(factionid == 18) { PlayerInfo[target][pSkin] = 240; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/18.txt", io_write); fwrite(log, text);fclose(log); } //Corleone
   else if(factionid == 19) { PlayerInfo[target][pSkin] = 115; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/19.txt", io_write); fwrite(log, text);fclose(log); } //Monroe
   else if(factionid == 19) { PlayerInfo[target][pSkin] = 277; new text[64]; format(text,64,"%s",GetName(target)); new File:log; log = fopen("Lideri/20.txt", io_write); fwrite(log, text);fclose(log); } //Vatrogasci
   SetPlayerSkin(target, PlayerInfo[target][pSkin]);
   format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s vam je dao lidera organizacije %s!", GetName(playerid), ImeOrganizacije(factionid));
   SendClientMessage(target, -1, string);
   format(string, sizeof(string), ""SPLAVA"A | "BELA"Admin %s je dao lidera %s-u organizacije %s.", GetName(playerid), GetName(target), ImeOrganizacije(factionid));
   AdminSupporter(-1, string);
   PlayerInfo[target][pProveraSpawna] = 2;
   return 1;
}[/pawn]

Sto se vozila tice vidis kako je uradjeno u scripti recimo za slot 1 i onda isto tako uradis jos koliko zelis samo menjas ime varijable, odnosno dodas novu varijablu sa drugim imenom i zatim pratis prvu varijablu od prvog slota i sta sve ima za nju definisano isto tako definises i za ovu drugu...
Sto se tice komande jel imas fajlove za lidere tamo gde su namenjeni da se zapisuju ?

ubaci crashdetect
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci

Citat: â–... â–† â–ˆ Rudimental â–ˆ â–† â–... poslato Jun 18, 2016, 01:04:18 PRE PODNE
Sto se vozila tice vidis kako je uradjeno u scripti recimo za slot 1 i onda isto tako uradis jos koliko zelis samo menjas ime varijable, odnosno dodas novu varijablu sa drugim imenom i zatim pratis prvu varijablu od prvog slota i sta sve ima za nju definisano isto tako definises i za ovu drugu...
Sto se tice komande jel imas fajlove za lidere tamo gde su namenjeni da se zapisuju ?
HVALA BURAZ OVO RADI !

OSTALI HVALA I VAMA NA POMOCI