[Pomoc]Lideri

Započeo MatijaCH, Mart 11, 2011, 09:18:22 PRE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:
Detaljan opis problema: ovako kad ja nekom dam lidera on moze koristit /invite,/uninvite i to....al je zapravo rank 1.....kak da to popravim
Dio skripte: /
Neke slike/video za lakse dobivanje pomoci(neobavezno):
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

predpostavljam da je GM godfather

dodaj pod makeleader odma da ti stavlja rank 6 ili koji vec hoces (nemam sada ni jednu skriptu da ti paste samo taj dio al imas u /giverank)
ili druga mogucnost je da taj leader sam sebi da rank sa /giverank!

United Rol3Play Back Online
www.united-roleplay.com








...pozdrav za kraj...






Evo sta imam:


CMD:giverank(playerid, params[])
{
new ID,level,string[120];
if(sscanf(params, "ud", ID,level)) return SendClientMessage(playerid, CRVENA, "Komanda: /giverank (ID/Ime) (rank)");
if(level > 6 || level < 0) return SendClientMessage(playerid, SIVA, "Rankovi su izmedu 1 i 6!");
if(PlayerInfo[playerid][Lider] < 1) return SendClientMessage(playerid, COLOR_GRAD1, "Samo Lideri mogu ovo koristiti!");
if(ID == INVALID_PLAYER_ID) return SendClientMessage(playerid, COLOR_GRAD1, "Pogresan ID!");
if(PlayerInfo[playerid][Lider] != PlayerInfo[ID][Clan]) return SendClientMessage(playerid, COLOR_GRAD1, "Igrac nije clan vase Org/Mafije/Bande!");
PlayerInfo[ID][pRank] = level;
format(string, sizeof(string), "Dobio si veci rank od Lidera:[%s],rank:[%s]", ImeIgraca(playerid),level);
SendClientMessage(ID, SVETLOPLAVA, string);
format(string, sizeof(string), "Dao si [%s],Rank:[%d].", ImeIgraca(ID),level);
SendClientMessage(playerid, SVETLOPLAVA, string);
return true;
}

/*CMD:f(playerid, params[])
{
new result,string[128];
new leader = PlayerInfo[playerid][Lider];
new member = PlayerInfo[playerid][Clan];
if(PlayerInfo[playerid][pMuted] == 1) return SendClientMessage(playerid, NARANDZASTA, "Ne mozes pricati! Usutkan si.");
if(sscanf(params,"s[128]",result)) return SendClientMessage(playerid, NARANDZASTA, "Koristi: /f (text)!");
if (gTeam[playerid] < 1) return SendClientMessage(playerid, COLOR_GRAD2, "Ti nisi clan Organizacije!");
if(member==1)//POLICIJA
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Zapovednik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Kapetan %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Porucnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Narednik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Cinovnik %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Kadet %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Kadet %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==2)//F.B.I
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Deputy Director %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Special Agent-in-Charge %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Senior Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Special Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Probationary Agent %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Probationary Agent %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==3)//BALLAS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Original Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Little Young Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Little Young Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==4)//HITNA POMOC
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Upravitelj %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Zamenik Upravitelja %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Specijalni Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Kirurg %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Doktor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Student %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Student %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==5)//CORLEONE's
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Considerer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Soldiers %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Associates %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Associates %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==6)//BLACK DRAGON TRIADS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Right Hand %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Miembro %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==7)//PREDSEDNIK
{
if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "*Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Politicar %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Prigovornik %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Prigovornik %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==8)//GROVE STREET
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Warlord %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Thug %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Hustler %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Grove Begginer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Grove Begginer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==9)//NOVINAR
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Network Producer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Network Editor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Network Anchor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Local Editor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Local Reporter %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Intern %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Intern %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==10)//TAXI
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Taxi Company Owner %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Shift Supervisor %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Dispatcher %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Cabbie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Taxi Rookie %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Trainee %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Trainee %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==11)//HITMAN
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "UnderBoss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Mafer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Extra Killer 3 %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Killer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==12)//CRIPS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Top O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Double O.G %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Original Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Baby Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Tiny Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Begginer Gangster %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Begginer Gangster %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==13)//STREET RACERS
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Master Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Pr0 Racer %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Fast Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Street Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Little Racer %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Little Racer %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==14)//VINCIE
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Don %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Padrino %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "LaManoDestra %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Capitano %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Soldato %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Ragazzi %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Ragazzi %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(member==15)//L.C.N
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "Boss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "Advisor %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "Warrior %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendFamilyMessage(PlayerInfo[playerid][Clan], SVETLOZELENA, string);
}
else if(leader >= 1 && leader <= 15)
{
format(string, sizeof(string), "Lider %s: %s. )) **", ImeIgraca(playerid), result);
SendFamilyMessage(PlayerInfo[playerid][Lider], SVETLOZELENA, string);
}
else if(PlayerInfo[playerid][pFMember] < 255)
{
if(PlayerInfo[playerid][pRank] == 6) { format(string, sizeof(string), "** Godfather %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 5) { format(string, sizeof(string), "** Underboss %s: %s. )) **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 4) { format(string, sizeof(string), "** Capo %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 3) { format(string, sizeof(string), "** Soldier %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 2) { format(string, sizeof(string), "** Associate %s: %s. ))  **", ImeIgraca(playerid), result); }
else if(PlayerInfo[playerid][pRank] == 1) { format(string, sizeof(string), "** Outsider %s: %s. ))  **", ImeIgraca(playerid), result); }
else { format(string, sizeof(string), "** Outsider %s: %s. )) **", ImeIgraca(playerid), result); }
SendNewFamilyMessage(PlayerInfo[playerid][pFMember], LJUBICASTA, string);
}
printf("%s", string);
return 1;
}*/
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

opla to je neki GF u zcmd ,,,

PlayerInfo[ID][pRank] = level;

e sada taj dio dodaj u /makeleader ali u ovom formatu

PlayerInfo[para1][pRank] = 6;

United Rol3Play Back Online
www.united-roleplay.com








...pozdrav za kraj...





Ma to je Cyber tako je u Cyberiu

Da to je Cyber -.-... :D

evo kod
   if(strcmp(cmd, "/makeleader", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, CRVENA, "Komanda: /makeleader [IgracevID/DeoImena] [Broj 1-15]");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strvalEx(tmp);
         if(level > 15 || level < 0) { SendClientMessage(playerid, SIVA, "Najmanje:1 | Najvise:15"); return 1; }
         if (PlayerInfo[playerid][Admin] >= 1337)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                     if(PlayerInfo[para1][Clan] > 0 || PlayerInfo[para1][pFMember] < 255)
                     {
                         SendClientMessage(playerid, SIVA, "[LIDER]:Taj igrac je vec u nekoj organizaciji !");
                         return 1;
                     }
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][Lider] = level;
                  format(string, sizeof(string), "Postavljeni ste za glavnog lidera od Admina [%s]", sendername);
                  SendClientMessage(para1, SVETLOPLAVA, string);
                  format(string, sizeof(string), "Dali ste %s glavnog lidera,Broj:%d!", giveplayer,level);
                  SendClientMessage(playerid, SVETLOPLAVA, string);
                  if(level == 0) { PlayerInfo[para1][pChar] = 0; }
                  else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pTeam] = 2; } //Policija
                  else if(level == 2) { PlayerInfo[para1][pChar] = 286; PlayerInfo[para1][pTeam] = 2; } //FBI
                  else if(level == 3) { PlayerInfo[para1][pChar] = 102; } //Ballas
                  else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //Hitna Pomoc
                  else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //Corleones
                  else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Black Dragon Triads
                        else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Gradonacelnik
                        else if(level == 8) { PlayerInfo[para1][pChar] = 270; } //Grove Street
                        else if(level == 9) { PlayerInfo[para1][pChar] = 295; } //CNN novinari
                        else if(level == 10) {PlayerInfo[para1][pChar] = 61; } //Taxi
                        else if(level == 11) {PlayerInfo[para1][pChar] = 294; } //Hitman
                        else if(level == 12) {PlayerInfo[para1][pChar] = 108; } //Crips
                        else if(level == 13) {PlayerInfo[para1][pChar] = 23; } //Street Racer
                        else if(level == 14) {PlayerInfo[para1][pChar] = 127; } //The Vincie
                        else if(level == 15) {PlayerInfo[para1][pChar] = 125; } //LCN
                        gTeam[para1] = 11;
                   PlayerInfo[para1][pTeam] = 11;
                   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
               }
            }
         }
         else
         {
            SendClientMessage(playerid, CRVENA, "Moras biti Admin:1337");
         }
      }
      return 1;
   }

kad dodam ovo sta si ti reko izbaci mi neki error -.-....mozd sam ga na krivo mesto dodo a mozda ne? neam pojma pocetnik sam tako da ...  :P
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !

Citat: MatijaCH poslato Mart 11, 2011, 18:43:43 POSLE PODNE
Da to je Cyber -.-... :D

evo kod
   if(strcmp(cmd, "/makeleader", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, CRVENA, "Komanda: /makeleader [IgracevID/DeoImena] [Broj 1-15]");
            return 1;
         }
         new para1;
         new level;
         para1 = ReturnUser(tmp);
         tmp = strtok(cmdtext, idx);
         level = strvalEx(tmp);
         if(level > 15 || level < 0) { SendClientMessage(playerid, SIVA, "Najmanje:1 | Najvise:15"); return 1; }
         if (PlayerInfo[playerid][Admin] >= 1337)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                     if(PlayerInfo[para1][Clan] > 0 || PlayerInfo[para1][pFMember] < 255)
                     {
                         SendClientMessage(playerid, SIVA, "[LIDER]:Taj igrac je vec u nekoj organizaciji !");
                         return 1;
                     }
                  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                  GetPlayerName(playerid, sendername, sizeof(sendername));
                  PlayerInfo[para1][Lider] = level;
                  format(string, sizeof(string), "Postavljeni ste za glavnog lidera od Admina [%s]", sendername);
                  SendClientMessage(para1, SVETLOPLAVA, string);
                  format(string, sizeof(string), "Dali ste %s glavnog lidera,Broj:%d!", giveplayer,level);
                  SendClientMessage(playerid, SVETLOPLAVA, string);
                  if(level == 0) { PlayerInfo[para1][pChar] = 0; }
                  else if(level == 1) { PlayerInfo[para1][pChar] = 283; PlayerInfo[para1][pTeam] = 2; } //Policija
                  else if(level == 2) { PlayerInfo[para1][pChar] = 286; PlayerInfo[para1][pTeam] = 2; } //FBI
                  else if(level == 3) { PlayerInfo[para1][pChar] = 102; } //Ballas
                  else if(level == 4) { PlayerInfo[para1][pChar] = 274; } //Hitna Pomoc
                  else if(level == 5) { PlayerInfo[para1][pChar] = 113; } //Corleones
                  else if(level == 6) { PlayerInfo[para1][pChar] = 120; } //Black Dragon Triads
                        else if(level == 7) { PlayerInfo[para1][pChar] = 147; } //Gradonacelnik
                        else if(level == 8) { PlayerInfo[para1][pChar] = 270; } //Grove Street
                        else if(level == 9) { PlayerInfo[para1][pChar] = 295; } //CNN novinari
                        else if(level == 10) {PlayerInfo[para1][pChar] = 61; } //Taxi
                        else if(level == 11) {PlayerInfo[para1][pChar] = 294; } //Hitman
                        else if(level == 12) {PlayerInfo[para1][pChar] = 108; } //Crips
                        else if(level == 13) {PlayerInfo[para1][pChar] = 23; } //Street Racer
                        else if(level == 14) {PlayerInfo[para1][pChar] = 127; } //The Vincie
                        else if(level == 15) {PlayerInfo[para1][pChar] = 125; } //LCN
                        gTeam[para1] = 11;
                   PlayerInfo[para1][pTeam] = 11;
                   SetPlayerSkin(para1, PlayerInfo[para1][pChar]);
               }
            }
         }
         else
         {
            SendClientMessage(playerid, CRVENA, "Moras biti Admin:1337");
         }
      }
      return 1;
   }

kad dodam ovo sta si ti reko izbaci mi neki error -.-....mozd sam ga na krivo mesto dodo a mozda ne? neam pojma pocetnik sam tako da ...  :P

Nije

PlayerInfo[para1][pRank] = 6;

vec

PlayerInfo[para1][Rank] = 6;
jer je koliko ja znam u cyberu Definirano kao "Level,Rank,Admin" i to ,nema "pLevel,pRank,pAdmin"

C:\Users\Matija\Desktop\nes\Cyb3r RolePlay [0.3c]\gamemodes\CYBER.pwn(37610) : error 017: undefined symbol "para1"
Pawn compiler 3.2.3664           Copyright (c) 1997-2006, ITB CompuPhase


1 Error.

:(
Vise ne skriptam!!!
Ako vam treba pomoc oko PC-a posaljite mi PM...pomoc cu vam ako znam !