[Pomoc]Problemi sa skinovima

Započeo [SG]Davy, Avgust 05, 2011, 16:11:23 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: Raven's RolePlay 0.3
Detaljan opis problema: Znaci prijatelj mi je lider neke org. i on meni da rank i promjeni mi se skin, al kada sam ja lider i dam njemu taj rank njemu se ne promjeni skin al dobije odredeni rank, molio bih za pomoc.
Dio skripte:    if(strcmp(cmd, "/giverank", true) == 0)
  {
  if(IsPlayerConnected(playerid))
  {
  tmp = strtok(cmdtext, idx);
  if(!strlen(tmp)) {
  SendClientMessage(playerid, COLOR_DGOLD, "KORISTENJE: /giverank [ID/DioImena] [1-6]");
  return 1;
  }
  new para1;
  new level;
  para1 = ReturnUser(tmp);
  tmp = strtok(cmdtext, idx);
  level = strval(tmp);
  if(PlayerInfo[playerid][pLeader] == 1 && PlayerInfo[para1][pMember] != 1 && PlayerInfo[para1][pLeader] != 1)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 2 && PlayerInfo[para1][pMember] != 2 && PlayerInfo[para1][pLeader] != 2)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 3 && PlayerInfo[para1][pMember] != 3 && PlayerInfo[para1][pLeader] != 3)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 4 && PlayerInfo[para1][pMember] != 4 && PlayerInfo[para1][pLeader] != 4)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 5 && PlayerInfo[para1][pMember] != 5 && PlayerInfo[para1][pLeader] != 5)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 6 && PlayerInfo[para1][pMember] != 6 && PlayerInfo[para1][pLeader] != 6)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
if(PlayerInfo[playerid][pLeader] == 7 && PlayerInfo[para1][pMember] != 7 && PlayerInfo[para1][pLeader] != 7)
{
    SendClientMessage(playerid, COLOR_RED, "SERVER: Nemozete dati rank igracu koji nije u vasoj organizaciji.");
return 1;
}
  if(level > 6 || level < 0) { SendClientMessage(playerid, COLOR_RED, "SEVRER: Ne mozete dati toliki rank - postoje rankovi od 1 do 6!"); return 1; }
  if (PlayerInfo[playerid][pLeader] >= 1)
  {
  if(IsPlayerConnected(para1))
  {
  if(para1 != INVALID_PLAYER_ID)
  {
  GetPlayerName(para1, giveplayer, sizeof(giveplayer));
  GetPlayerName(playerid, sendername, sizeof(sendername));
  PlayerInfo[para1][pRank] = level;
  SendClientMessage(para1,COLOR_GOLD,"SERVER: Dobili ste novi rank od strane lidera ove organizacije.");
  }


if(PlayerInfo[para1][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 284; SetPlayerSkin(para1, 284); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 284; SetPlayerSkin(para1, 284); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 280; SetPlayerSkin(para1, 280); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 280; SetPlayerSkin(para1, 280); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 281; SetPlayerSkin(para1, 281); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 281; SetPlayerSkin(para1, 281); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}
else if(PlayerInfo[playerid][pMember] == 5 || PlayerInfo[playerid][pLeader] == 5)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 102; SetPlayerSkin(para1, 102); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 102; SetPlayerSkin(para1, 102); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 103; SetPlayerSkin(para1, 103); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 103; SetPlayerSkin(para1, 103); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 104; SetPlayerSkin(para1, 104); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 104; SetPlayerSkin(para1, 104); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}
else if(PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 111; SetPlayerSkin(para1, 111); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 111; SetPlayerSkin(para1, 111); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 125; SetPlayerSkin(para1, 125); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 125; SetPlayerSkin(para1, 125); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 124; SetPlayerSkin(para1, 124); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 124; SetPlayerSkin(para1, 124); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}
else if(PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 107; SetPlayerSkin(para1, 107); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 107; SetPlayerSkin(para1, 107); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 105; SetPlayerSkin(para1, 105); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 105; SetPlayerSkin(para1, 105); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 106; SetPlayerSkin(para1, 106); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 106; SetPlayerSkin(para1, 106); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 41; SetPlayerSkin(para1, 41);
}
}
else if(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 112; SetPlayerSkin(para1, 112); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 112; SetPlayerSkin(para1, 112); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 127; SetPlayerSkin(para1, 127); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 127; SetPlayerSkin(para1, 127); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 166; SetPlayerSkin(para1, 166); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 166; SetPlayerSkin(para1, 166); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}
else if(PlayerInfo[playerid][pMember] == 7 || PlayerInfo[playerid][pLeader] == 7)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 188; SetPlayerSkin(para1, 188); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 188; SetPlayerSkin(para1, 188); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 187; SetPlayerSkin(para1, 187); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 187; SetPlayerSkin(para1, 187); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 147; SetPlayerSkin(para1, 147); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 147; SetPlayerSkin(para1, 147); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}
else if(PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
if(PlayerInfo[para1][pSex] == 1)
{
//Male Skin
if(PlayerInfo[para1][pRank] == 1) { PlayerInfo[para1][pChar] = 123; SetPlayerSkin(para1, 123); }
else if(PlayerInfo[para1][pRank] == 2) { PlayerInfo[para1][pChar] = 123; SetPlayerSkin(para1, 123); }
else if(PlayerInfo[para1][pRank] == 3) { PlayerInfo[para1][pChar] = 59; SetPlayerSkin(para1, 59); }
else if(PlayerInfo[para1][pRank] == 4) { PlayerInfo[para1][pChar] = 59; SetPlayerSkin(para1, 59); }
else if(PlayerInfo[para1][pRank] == 5) { PlayerInfo[para1][pChar] = 120; SetPlayerSkin(para1, 120); }
else if(PlayerInfo[para1][pRank] == 6) { PlayerInfo[para1][pChar] = 120; SetPlayerSkin(para1, 120); }
}
else if(PlayerInfo[para1][pSex] == 2)
{
PlayerInfo[para1][pChar] = 211; SetPlayerSkin(para1, 211);
}
}

}
}
else
{
SendClientMessage(playerid, COLOR_RED, "SERVER: Niste autorizirani da koristite ovu komandu - samo lideri organizacija.");
}
}
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno): //