Rank

Započeo .варнинг, Decembar 16, 2017, 20:33:25 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim:GhostTown 1.8
Detaljan opis problema:Ovako,kada pokusam npr. /dodelirank 12 5, pise da je igrac lider ali nije.
Dio skripte:YCMD:dodelirank(playerid, params[],help)
{
    #pragma unused help
    if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,""RG"INFO | ~ "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pLider] == 0) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Samo Lideri!!");
new id, rank,string[128];
if(sscanf(params, "ui", id, rank)) return SCM(playerid,-1, ""RG"INFO | ~ "BELA"/dodelirank [ID/Ime] [Rank (0-5)]");
if(!IsPlayerConnected(id)) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je offline!");
if(PlayerInfo[playerid][pLider] != PlayerInfo[playerid][pClan]) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je clan neke druge organizacije!");
if(rank < 0 || rank > 5) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Rank ne moze biti manji od 0 i veci od 5!");
if(PlayerInfo[playerid][pLider] > 0) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je lider neke organizacije pa mu ne mozete dati rank!");
if(id == playerid) return SCM(playerid,-1,""SPLAVA"[GRESKA] "BELA"Ne mozete sebi davati rank!");
/////////////////PD///////////////////////
if(PlayerInfo[playerid][pLider] == 1)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, PD_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, PD_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, PD_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) { SetPlayerSkin(id, PD_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, PD_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, PD_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////TVF////////////////////
else if(PlayerInfo[playerid][pLider] == 2)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, TVF_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, TVF_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, TVF_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, TVF_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, TVF_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, TVF_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
//////////////////LCN//////////////////////////
else if(PlayerInfo[playerid][pLider] == 18)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, LCN_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, LCN_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, LCN_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, LCN_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, LCN_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, LCN_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
/////////////////////TRIADS////////////////////
else if(PlayerInfo[playerid][pLider] == 3)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, TBT_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, TBT_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, TBT_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, TBT_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, TBT_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, TBT_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
    /////////////////////GROVE////////////////////
else if(PlayerInfo[playerid][pLider] == 4)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, GSF_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, GSF_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, GSF_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, GSF_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, GSF_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, GSF_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
//////////////////BALLAS///////////////////////
else if(PlayerInfo[playerid][pLider] == 5)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, BALLAS_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, BALLAS_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, BALLAS_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, BALLAS_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, BALLAS_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BALLAS_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
//////////////////NOVINARI/////////////////////
else if(PlayerInfo[playerid][pLider] == 6)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, NOVINARI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, NOVINARI_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, NOVINARI_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, NOVINARI_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, NOVINARI_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, NOVINARI_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
/////////////////////////////////////////////////
////////////////////////////////////////////////////
if(PlayerInfo[playerid][pLider] == 8)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, PS_RANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, PS_RANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, PS_RANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) { SetPlayerSkin(id, PS_RANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, PS_RANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, PD_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
if(PlayerInfo[playerid][pLider] == 9)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, CO_RANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, CO_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, CO_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) { SetPlayerSkin(id, CO_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, CO_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, CO_ZRANK); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 10)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, BB_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, BB_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, BB_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, BB_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, BB_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 11)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, PO_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, PO_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, PO_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, PO_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, PO_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 13)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, PO3_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, PO3_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, PO3_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, PO3_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, PO3_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 14)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, TAXI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, TAXI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, TAXI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, TAXI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, TAXI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 7)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, FBI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, FBI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, FBI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, FBI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, FBI_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 16)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, M_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, M_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, M_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, M_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, M_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, M_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 17)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, RB_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, RB_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, RB_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, RB_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, RB_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
//////////////////////////////////////////////
    ////////////////////////////////////////////////////
else if(PlayerInfo[playerid][pLider] == 19)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, DR_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, DR_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, DR_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, DR_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, DR_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else if(PlayerInfo[playerid][pLider] == 20)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, PO4_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, PO4_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, PO4_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, PO4_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, PO4_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, BB_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else if(PlayerInfo[playerid][pLider] == 21)
{
if(PlayerInfo[playerid][pSex] == 1)
{
if(rank==1 || rank==0){ SetPlayerSkin(id, MS13_RANK1); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 2) { SetPlayerSkin(id, MS13_RANK2); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 3) { SetPlayerSkin(id, MS13_RANK3); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 4) {    SetPlayerSkin(id, MS13_RANK4); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
else if(rank == 5) { SetPlayerSkin(id, MS13_RANK5); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
else { SetPlayerSkin(id, MS13_ZENSKI); PlayerInfo[playerid][pSkin] = GetPlayerSkin(id); }
}
//////////////////////////////////////////////
PlayerInfo[playerid][pRank] = rank;
format(string, sizeof(string), ""SPLAVA"INFO | "SIVA"Lider %s vas je unapredio u rank %d!", GetName(playerid),rank);
SendClientMessage(id, -1, string);
format(string, sizeof(string), ""SPLAVA"INFO | "SIVA"Dao si %s rank %d.", GetName(id),rank);
SendClientMessage(playerid, -1, string);
return 1;
}

Neke slike/video za lakse dobivanje pomoci(neobavezno):///
                                                                                 
Legacy Gaming Since 2017 ©

Scripter and Founder
Scripting 3+ Years
https://www.facebook.com/LegacyGamingOGC/ (FB Stranica)
https://www.facebook.com/nikolaa.jovicic (FB Nalog)

                                                                                 

[pawn]if(PlayerInfo[playerid][pLider] != PlayerInfo[id][pClan]) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je clan neke druge organizacije!");
if(PlayerInfo[id][pLider] > 0) return SCM(playerid, -1, ""SPLAVA"[GRESKA] "BELA"Igrac je lider neke organizacije pa mu ne mozete dati rank!");[/pawn]



Prošlo 48h bez ikakvog odgovora na temu.
heroin rap - Moskri u kuci, od sledece lajne glava ce mi puci