~MostWanted~ [Help Please :S]
#3

Quote:
Originally Posted by Misiur
Посмотреть сообщение
pawn Код:
new Text3D:Some3DStorage[MAX_PLAYERS];

//(...)

if(strcmp(cmdtext, "/mostwanted", true) == 0)
{
    new
        count = 0,
        name[24],
        wl = 0;
       
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i)) {
            wl = GetPlayerWantedLevel(i);
            if(wl >= 5)
            {
                GetPlayerName(i, name, sizeof(name));
                format(string, sizeof(string), "%s%s (%d) - Wanted Level: %d\n", string, name, i, wl);
                count++;

                Some3DStorage[i] = Create3DTextLabel("~ Most wanted ~", 0xBADA55AA, 0, 0, 0, 100.0, 0);
                Attach3DTextLabelToPlayer(Some3DStorage[i], i, 0.0, 0.0, 0.8);
            }
        }
    }
    if(!count) strcat((string[0] = EOS, string), "No online wanted players.");
   
    ShowPlayerDialog(playerid, 26, DIALOG_STYLE_MSGBOX, "Most Wanted Players Online", string, "OK", "");
    return 1;
}
Something like this
First Thanks for trying to help, but i think the Create3DTextLabel will working just if you write /mostwanted right?
Reply


Messages In This Thread
~MostWanted~ [Help Please :S] - by MahdiGames - 02.02.2014, 11:11
Re: ~MostWanted~ [Help Please :S] - by Misiur - 02.02.2014, 11:25
Re: ~MostWanted~ [Help Please :S] - by MahdiGames - 02.02.2014, 11:26
Re: ~MostWanted~ [Help Please :S] - by Konstantinos - 02.02.2014, 11:32
Re: ~MostWanted~ [Help Please :S] - by Misiur - 02.02.2014, 11:37
Re: ~MostWanted~ [Help Please :S] - by MahdiGames - 02.02.2014, 11:38
Re: ~MostWanted~ [Help Please :S] - by Misiur - 02.02.2014, 12:10
Re: ~MostWanted~ [Help Please :S] - by MahdiGames - 02.02.2014, 12:13
Re: ~MostWanted~ [Help Please :S] - by MahdiGames - 02.02.2014, 13:37
Re: ~MostWanted~ [Help Please :S] - by Misiur - 02.02.2014, 13:42

Forum Jump:


Users browsing this thread: 1 Guest(s)