[pomoc]Kako da promenim Skin[organizacije]

Započeo milos depalov, Jul 09, 2011, 16:41:32 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:Empire-Gaming
Detaljan opis problema:Kako da promenim skin igraca u toj organizaciji (na primer Groove Street ,swe sam uradio interijer promenio ime organizacije bazu ubaio nova auta swe radi ali mi je ostavo stari skin od grove mafije ja bi teo da izmenim skinove ,ako moze mala pomoc)
Dio skripte://
Neke slike/video za lakse dobivanje pomoci(neobavezno)://


Pa nadjes u skirpti org Groove i tamo su id-ovi skinova i promijenis ID..
Trenutni projekt: NightLife Roleplay

Bizz System 40%
House System 70%
Car Ownership 20%
Log/reg System 100%
Poslovi 20%
Anticheat 0%
Organizacije 50%
Event System 0%
Komande 20%

jel znate kako je do tacno definisamno trazio sam menjo ali dzaba
:'(

Daj nam komandu /makeleader i /invite
CMD:makeleader
CMD:invite
TO trazi jer je u ZCMD-u



//invite
   if(strcmp(cmd, "/invite", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /invite [playerid/DioImena]");
            return 1;
         }
         new para1;
         new ftext[20];
         para1 = ReturnUser(tmp);
         if (PlayerInfo[playerid][pLeader] >= 1)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                   if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
                   {

                       if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                       else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Salvatores"; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122); }
                       else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Black Dragons"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
                       else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
                       else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
                       else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }
                       else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Novinari"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
                       else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Balkan Gangs"; ChosenSkin[para1] = 110; SetPlayerSkin(para1, 110); }//105
                       else { return 1; }
                     GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                     PlayerInfo[para1][pRank] = 1;
                     printf("AdmCmd: %s je pozvao %s da se pridruzi %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "   Pridruzio si se %s, pozvan si od strane leadera %s", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "   Stavio si %s u %s.", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][pMember];
                      SelectCharPlace[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Koristi 'next' dok ne nades skin koji zelis.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Ako si nasao skin koji zelis upisi 'done'.");
                  }
                  else
                  {
                      SendClientMessage(playerid, COLOR_GREY, "  Igrac je trenutno u drugoj Organizaciji/Mafiji.");
                      return 1;
                  }
               }
            }//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   (Odbijeno) Nisi lider !!");
         }
      }
      return 1;
   }
//makelea   if(strcmp(cmd, "/invite", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /invite [playerid/DioImena]");
            return 1;
         }
         new para1;
         new ftext[20];
         para1 = ReturnUser(tmp);
         if (PlayerInfo[playerid][pLeader] >= 1)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                   if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
                   {

                       if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                       else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Salvatores"; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122); }
                       else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Black Dragons"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
                       else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
                       else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
                       else if(PlayerInfo[playerid][pLeader] == 8) { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }
                       else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Novinari"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
                       else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Balkan Gangs"; ChosenSkin[para1] = 110; SetPlayerSkin(para1, 110); }//105
                       else { return 1; }
                     GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                     PlayerInfo[para1][pRank] = 1;
                     printf("AdmCmd: %s je pozvao %s da se pridruzi %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "   Pridruzio si se %s, pozvan si od strane leadera %s", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "   Stavio si %s u %s.", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][pMember];
                      SelectCharPlace[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Koristi 'next' dok ne nades skin koji zelis.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Ako si nasao skin koji zelis upisi 'done'.");
                  }
                  else
                  {
                      SendClientMessage(playerid, COLOR_GREY, "  Igrac je trenutno u drugoj Organizaciji/Mafiji.");
                      return 1;
                  }
               }
            }//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   (Odbijeno) Nisi lider !!");
         }
      }
      return 1;
   }der


da promenim skinove org................ na primer banda mi se zove Ballas a ono clanovi nose grove skinove

Stavljaj komande u [code=c] jer budu preglednije!!
Daj komandu /makeleader[/code]
if(strcmp(cmd, "/invite", true) == 0)
   {
       if(IsPlayerConnected(playerid))
       {
         tmp = strtok(cmdtext, idx);
         if(!strlen(tmp))
         {
            SendClientMessage(playerid, COLOR_GRAD2, "KORISTENJE: /invite [playerid/DioImena]");
            return 1;
         }
         new para1;
         new ftext[20];
         para1 = ReturnUser(tmp);
         if (PlayerInfo[playerid][pLeader] >= 1)
         {
             if(IsPlayerConnected(para1))
             {
                 if(para1 != INVALID_PLAYER_ID)
                 {
                   if (gTeam[para1]==TEAM_GREEN && PlayerInfo[para1][pMember] == 0 && PlayerInfo[para1][pFMember] == 255)
                   {

                       if(PlayerInfo[playerid][pLeader] == 1) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "Police Force"; ChosenSkin[para1] = 280; SetPlayerSkin(para1, 280); }
                       else if(PlayerInfo[playerid][pLeader] == 2) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "FBI/ATF"; ChosenSkin[para1] = 286; SetPlayerSkin(para1, 286); }
                       else if(PlayerInfo[playerid][pLeader] == 3) { PlayerInfo[para1][pTeam] = 2; gTeam[para1] = 2; ftext = "National Guard"; ChosenSkin[para1] = 287; SetPlayerSkin(para1, 287); }
                       else if(PlayerInfo[playerid][pLeader] == 4) { PlayerInfo[para1][pTeam] = 1; gTeam[para1] = 1; ftext = "Salvatores"; ChosenSkin[para1] = 122; SetPlayerSkin(para1, 122); }
                       else if(PlayerInfo[playerid][pLeader] == 5) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Black Dragons"; ChosenSkin[para1] = 258; SetPlayerSkin(para1, 120); }
                       else if(PlayerInfo[playerid][pLeader] == 6) { PlayerInfo[para1][pTeam] = 5; gTeam[para1] = 5; ftext = "Yakuza"; ChosenSkin[para1] = 120; SetPlayerSkin(para1, 258); }
                       else if(PlayerInfo[playerid][pLeader] == 7) { return 1; }
                       else if(PlayerInfo[playerid][pLeader] ==  { PlayerInfo[para1][pTeam] = 10; gTeam[para1] = 12; ftext = "Hitman Agency"; ChosenSkin[para1] = 127; SetPlayerSkin(para1, 127); }
                       else if(PlayerInfo[playerid][pLeader] == 9) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Novinari"; ChosenSkin[para1] = 148; SetPlayerSkin(para1, 148); }
                       else if(PlayerInfo[playerid][pLeader] == 10) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Taxi Cab Company"; ChosenSkin[para1] = 255; SetPlayerSkin(para1, 255); }
                       else if(PlayerInfo[playerid][pLeader] == 11) { PlayerInfo[para1][pTeam] = 12; gTeam[para1] = 12; ftext = "Balkan Gangs"; ChosenSkin[para1] = 102; SetPlayerSkin(para1, 102); }//105
                       else { return 1; }
                     GetPlayerName(para1, giveplayer, sizeof(giveplayer));
                     GetPlayerName(playerid, sendername, sizeof(sendername));
                     PlayerInfo[para1][pMember] = PlayerInfo[playerid][pLeader];
                     PlayerInfo[para1][pRank] = 1;
                     printf("AdmCmd: %s je pozvao %s da se pridruzi %s.", sendername, giveplayer, ftext);
                     format(string, sizeof(string), "   Pridruzio si se %s, pozvan si od strane leadera %s", ftext, sendername);
                     SendClientMessage(para1, COLOR_LIGHTBLUE, string);
                     format(string, sizeof(string), "   Stavio si %s u %s.", giveplayer,ftext);
                     SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
                     SetPlayerInterior(para1,0);
                     new rand = random(sizeof(gInviteSpawns));
                     SetPlayerPos(para1, gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]); // Warp the player
                     SetPlayerFacingAngle(para1, gInviteSpawns[rand][3]);
                     SetPlayerCameraPos(para1,gInviteSpawns[rand][0] + 3, gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     SetPlayerCameraLookAt(para1,gInviteSpawns[rand][0], gInviteSpawns[rand][1], gInviteSpawns[rand][2]);
                     TogglePlayerControllable(para1, 0);
                      SelectChar[para1] = 255;
                      SelectCharID[para1] = PlayerInfo[para1][pMember];
                      SelectCharPlace[para1] = 1;
                      PlayerInfo[para1][pModel] = ChosenSkin[para1];
                      PlayerInfo[para1][pChar] = ChosenSkin[para1];
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Koristi 'next' dok ne nades skin koji zelis.");
                      SendClientMessage(para1, COLOR_LIGHTRED, "* Ako si nasao skin koji zelis upisi 'done'.");
                  }
                  else
                  {
                      SendClientMessage(playerid, COLOR_GREY, "  Igrac je trenutno u drugoj Organizaciji/Mafiji.");
                      return 1;
                  }
               }
            }//not connected
         }
         else
         {
            SendClientMessage(playerid, COLOR_GRAD1, "   (Odbijeno) Nisi lider !!");
         }
      }
      return 1;
   }
Poslednja Izmena: Jul 09, 2011, 17:43:42 POSLE PODNE od Cookie



COMMAND:makeleader(playerid,params[])
{
    new
    id,
    level,
    otext[50],
    ime[MAX_PLAYER_NAME],
    ime2[MAX_PLAYER_NAME],
    string[128];
    if (sscanf(params, "ud", id,level)) SendClientMessage(playerid, COLOR_GRAD2, "Koristi: /makeleader [ID] [1-11]");
    else if (id == INVALID_PLAYER_ID) SendClientMessage(playerid, COLOR_GRAD2, "[Greska]: Igrac nije online.");
    else
    {
       if(level > 11 || level < 0) { SCM(playerid,COLOR_GRAD4,"[Greska]: Minimalno 0 i maximalno 11."); return 1; }
       if(PlayerInfo[playerid][pAdmin] >= 1337)
       {
            if(level == 0) { PlayerInfo[id][pChar] = 17; otext = "nista"; PlayerInfo[id][pTeam] = 0;}
         else if(level == 1) { PlayerInfo[id][pChar] = 288; otext = "Policia"; }
         else if(level == 2) { PlayerInfo[id][pChar] = 286; otext = "FBI";}
         else if(level == 3) { PlayerInfo[id][pChar] = 287; otext = "Bolnica";}
         else if(level == 4) { PlayerInfo[id][pChar] = 122; otext = "Salvatores"; }
         else if(level == 5) { PlayerInfo[id][pChar] = 113; otext = "Black Dragon Familia"; }
         else if(level == 6) { PlayerInfo[id][pChar] = 120; otext = "Yakuza"; }
         else if(level == 7) { PlayerInfo[id][pChar] = 147; otext = "Gradonacelnik"; }
         else if(level == 8) { PlayerInfo[id][pChar] = 294; otext = "Hitman"; }
         else if(level == 9) { PlayerInfo[id][pChar] = 227; otext = "Novinar"; }
         else if(level == 10){ PlayerInfo[id][pChar] = 61;  otext = "Taxi Club"; }
         else if(level == 11){ PlayerInfo[id][pChar] = 106; otext = "Balkan Bikers"; }
         PlayerInfo[id][pLeader] = level;
         PlayerInfo[id][pMember] = level;
         PlayerInfo[id][pRank] = 6;
         GetPlayerName(playerid, ime, sizeof(ime));
         GetPlayerName(id, ime2, sizeof(ime2));
         format(string, sizeof string,"Postavljen si da vodis %s | Od strane admina: %s",otext,ime);
         SCM(id,COLOR_Text,string);
         format(string, sizeof string,"Postavio si %s da vodi %s",ime2,otext);
         SCM(playerid,COLOR_Text,string);
         gTeam[id] = 10;
            PlayerInfo[id][pTeam] = 10;
            SetPlayerSkin(id, PlayerInfo[id][pChar]);
       }
       else
       {
          SCM(playerid,COLOR_GRAD4,"[Greska]: (Odbijeno) Nisi admin.");
       }
   }
   return 1;
}

obrati paznju na ove podebljane brojeve :

else if(level == 1) { PlayerInfo[id][pChar] = 288; otext = "Policia"; }
         else if(level == 2) { PlayerInfo[id][pChar] = 286; otext = "FBI";}
         else if(level == 3) { PlayerInfo[id][pChar] = 287; otext = "Bolnica";}
         else if(level == 4) { PlayerInfo[id][pChar] = 122; otext = "Salvatores"; }


i tako sve to to su ti ID-ovi od skinova njih mozes naci ovdije : http://wiki.sa-mp.com/wiki/Category:Skins

nades i zamjenes takoder isto ti je sa clanovima samo te brojeve nades i sve je to i zamjens kontas ?
Ping | Need For Speed - Progres
OwnerShip 100 % | Reg/Log sistem 100 % | Admin + GameMaster sistem 100 % | Bande 100 % | Poslovi 100 % | Eventi 0 % | Sistem Duel za Gunove 100 % | Sistem Duel Race 100 % | Tuning Sistem 15 % | Shop sistem 0 %
Potrebni Mapperi za Ping posebno za NFS i FR mod
Prijavnica :
Nick na forumu ( Ping forumu ) :
Za koji mod zelite mappat ( mozemo se bazirat samo za jedan a mozete za oba ) :
Sto zelite kao nagradu :

HVALA moze Lock
;)

ako moze pomoc ovde http://balkan-samp.com/forum/index.php?topic=28131.0
Poslednja Izmena: Jul 10, 2011, 19:47:22 POSLE PODNE od milos depalov