[POMOC] offprovjera

Započeo branac_rocky, Decembar 04, 2014, 16:37:45 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Skripta koju koristim: UP:RP
Detaljan opis problema: Moze li mi neko pomoci da napravim komandu /offproveri ,npr kucam /offproveri Branac_Rocky i ta komanda ispisuje koliko imam para ,level itd..Sve to znam napraviti,samo ne znam "procitati,i ispisati" :) ..Znam kad je igrač online,no ne znam kad je off.
Dio skripte: //
Neke slike/video za lakse dobivanje pomoci(neobavezno): //

Unaprijed Hvala,

Dali mislis ovako nesto ili
CMD:richlist(playerid,params[]) {
    if(PlayerInfo[playerid][AdminLevel] >= 2) {
        new Slot1 = -1, Slot2 = -1, Slot3 = -1, Slot4 = -1;
        new HighestCash = -9999;
        SendClientMessage(playerid, COLOR_GREEN, "~~~ Rich List: ~~~ ");

        for(new x=0; x<MAX_PLAYERS; x++)
        if(IsPlayerConnected(x))
        if(GetPlayerMoney(x) >= HighestCash) {
        HighestCash = GetPlayerMoney(x);
        Slot1 = x;
        }

        HighestCash = -9999;

        for(new x=0; x<MAX_PLAYERS; x++)
        if(IsPlayerConnected(x) && x != Slot1)
        if(GetPlayerMoney(x) >= HighestCash) {
        HighestCash = GetPlayerMoney(x);
        Slot2 = x;
        }

        HighestCash = -9999;

        for(new x=0; x<MAX_PLAYERS; x++)
        if(IsPlayerConnected(x) && x != Slot1 && x != Slot2)
        if(GetPlayerMoney(x) >= HighestCash) {
        HighestCash = GetPlayerMoney(x);
        Slot3 = x;
        }

        HighestCash = -9999;

        for(new x=0; x<MAX_PLAYERS; x++)
        if(IsPlayerConnected(x) && x != Slot1 && x != Slot2 && x != Slot3)
        if(GetPlayerMoney(x) >= HighestCash) {
        HighestCash = GetPlayerMoney(x);
        Slot4 = x;
        }

        format(szString, sizeof(szString), "* %s (ID: %d) - $%d", RichPlayerName(Slot1), Slot1, GetPlayerMoney(Slot1));
        SendClientMessage(playerid, COLOR_GREEN, szString);

        if(Slot2 != -1) {
        format(szString, sizeof(szString), "* %s (ID: %d) - $%d", RichPlayerName(Slot2), Slot2, GetPlayerMoney(Slot2));
        SendClientMessage(playerid, COLOR_GREEN, szString);
        }
        if(Slot3 != -1) {
        format(szString, sizeof(szString), "* %s (ID: %d) - $%d", RichPlayerName(Slot3), Slot3, GetPlayerMoney(Slot3));
        SendClientMessage(playerid, COLOR_GREEN, szString);
        }
        if(Slot4 != -1) {
        format(szString, sizeof(szString), "* %s (ID: %d) - $%d", RichPlayerName(Slot4), Slot4, GetPlayerMoney(Slot4));
        SendClientMessage(playerid, COLOR_GREEN, szString);
        }
    }
    else {
        return 0;
}
return 1;
}


http://forum.sa-mp.com/showthread.php?t=378927 Koje cudo je GOOGLE na njemu mozes sve naci

public OnPlayerDisconnect(playerid, reason)
{
  Ban(playerid);
  return 1;
}


Trazim Pomocnog Skriptera za skriptu od Nule tko je voljan PM me

Citat: Assassin007 poslato Decembar 05, 2014, 15:02:21 POSLE PODNE
http://forum.sa-mp.com/showthread.php?t=378927 Koje cudo je GOOGLE na njemu mozes sve naci

Pa i taj trazi pomoc tu...Ako bi neko mogao pomoci,ili reci mi ako ima u nekom modu neka provjera off..Tj da "procita" sta pise u korisnici fajlu,i da ispise to :) Hvala