Jump to content

Question

Posted

Salut am si eu nevoie de ajutor,sunt nou in scripting si as vrea daca poate cineva sa imi transforme :

CMD:vips(PARAMS)

{

    LoginCheck(playerid);

    new C, S[1024], cString[150];

    foreach(Player, i){

if(P_DATA[Vip] > 0){

C++;

}

}

    format(cString, sizeof (cString), "%s", © ? (OnlineCheck("Vips", C)) : ("{FF0000}No VIP members online!")) ;

    if(C == 1){

    foreach(Player, i){

if(P_DATA[Vip] > 0){

        format(S, sizeof (S), "%s"BLUE"%s"W"["BLUE"L:%d|ID:%d"W"]",cString, Name(i), P_DATA[Vip],i);

}

}

}

if(C > 1){

foreach(Player, i){

if(P_DATA[Vip] > 0){

    format(S, sizeof (S), "%s"BLUE"%s"W"["BLUE"L:%d|ID:%d"W"], ",S, Name(i), P_DATA[Vip],i);

   

    if(!(i % MAX_SHOW_PER_ROW)){

    if(i != 0){

strdel(S, strlen(S) - 2, strlen(S));

strins(S, "\n", strlen(S));

//S[0] = EOS;

}

}

}

}

}

if(!C) memcpy(S, cString, 0, 1024 );

if(strlen(S) < 1024) SPD(playerid, Dialog:Empty, BOX, "{FFFFFF}Online VIP members!", S, "Close", "");

if(strlen(S) > 1024) SPD(playerid, Dialog:Empty, BOX, "{FFFFFF}Online VIP members!", "{FF0000}An error has occured while trying to show the online VIP Members!\n{FFFFFF}Please contact the owner and inform him about this problem!", "Close", "");

return 1;

}

Si CMD:admins(PARAMS)

{

    LoginCheck(playerid);

   

    new C, S[1024], cString[150];

    foreach(Player, i){

if(P_DATA[Level] > 0){

C++;

}

}

    format(cString, sizeof (cString), "%s", © ? (OnlineCheck("Admins", C)) : ("{FF0000}No Admins Online!")) ;

    if(C == 1){

    foreach(Player, i){

if(P_DATA[Level] > 0){

        format(S, sizeof (S), "%s"GREE"%s"W"["GREE"L:%d|ID:%d"W"]",cString, Name(i), P_DATA[Level],i);

}

}

}

if(C > 1){

foreach(Player, i){

if(P_DATA[Level] > 0){

    format(S, sizeof (S), "%s"GREE"%s"W"["GREE"L:%d|ID:%d"W"], ",S, Name(i), P_DATA[Level],i);

    if(!(i % MAX_SHOW_PER_ROW)){

    if(i != 0){

strdel(S, strlen(S) - 2, strlen(S));

strins(S, "\n", strlen(S));

//S[0] = EOS;

}

}

}

}

}

if(!C)   format(S, sizeof (S), "%s", cString);

if(strlen(S) < 1024) SPD(playerid, Dialog:Empty, BOX, "{FFFFFF}Online Administrators!", S, "Close", "");

if(strlen(S) > 1024) SPD(playerid, Dialog:Empty, BOX, "{FFFFFF}Online Administrators!", "{FF0000}An error has occured while trying to show the online administrators!\n{FFFFFF}Please contact the owner and inform him about this problem!", "Close", "");

return 1;

} In dcmd

Va multumesc !

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.