Szerző Téma: Valaki megmondja hogy miert van ez..!  (Megtekintve 276 alkalommal)

Valaki megmondja hogy miert van ez..!
« Dátum: 2013. október 17. - 19:39:46 »
0 Show voters
Itt ez a jatekos script meg meg ket script de most a jatekos script a fontos..felmejek szeora kiirja jatekosok es hogy hanyan vannak..de a szamat rairja a jatekosok -k betyujere
#include <a_samp>
#include <fixchars>
new Text:Textdraw0,
        Text:Textdraw1,
        OnlinePlayers;
new const RandomWorldTime[24][1] =
{
    {0},{1},{2},{3},{4},{5},{6},{7},{8},{9},{10},{11},{12},{13},{14},{15},{16},{17},{18},{19},{20},{21},{22},{23}
};
// Weather ids.
new const RandomWeather[11][1] =
{
    {1},{2},{3},{4},{5},{7},{8},{9},{10},{15},{16}
};
public OnFilterScriptInit()
{
        print(\"Fs By Cappy\'s Role Play\");
        print(\"Számláló készítette Bence\");
        Textdraw0 = TextDrawCreate(500.000000, 100.000000, \"Játékosok:\");
        TextDrawBackgroundColor(Textdraw0, 255);
        TextDrawFont(Textdraw0, 1);
        TextDrawLetterSize(Textdraw0, 0.500000, 1.000000);
        TextDrawColor(Textdraw0, -1);
        TextDrawSetOutline(Textdraw0, 1);
        TextDrawSetProportional(Textdraw0, 1);
        Textdraw1 = TextDrawCreate(584.000000, 99.000000, \" x/30\");
        TextDrawBackgroundColor(Textdraw1, 255);
        TextDrawFont(Textdraw1, 2);
        TextDrawLetterSize(Textdraw1, 0.500000, 1.000000);
        TextDrawColor(Textdraw1, -1);
        TextDrawSetOutline(Textdraw1, 0);
        TextDrawSetProportional(Textdraw1, 1);
        TextDrawSetShadow(Textdraw1, 1);
        for(new i; i < MAX_PLAYERS; i ++)
        {
                if(IsPlayerConnected(i))
                {
                    OnlinePlayers++;
                    TextDrawShowForPlayer(i, Textdraw0);
                    TextDrawShowForPlayer(i, Textdraw1);
                }
        }
          SetTimer(\"WeatherAndTime\", 240000, true); //You can change the timer >>
        return 1;
}
public OnFilterScriptExit()
{
        TextDrawHideForAll(Textdraw0);
        TextDrawDestroy(Textdraw0);
        TextDrawHideForAll(Textdraw1);
        TextDrawDestroy(Textdraw1);
        return 1;
}
public OnPlayerConnect(playerid)
{
    OnlinePlayers++;
    new newtext[41];
    format(newtext, sizeof(newtext), \"%d\", OnlinePlayers, GetMaxPlayers());
    TextDrawSetString(Textdraw1, newtext);
    TextDrawShowForPlayer(playerid, Textdraw1);
    TextDrawShowForPlayer(playerid, Textdraw0);
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
    OnlinePlayers--;
    new newtext[41];
    format(newtext, sizeof(newtext), \"%d\", OnlinePlayers, GetMaxPlayers());
    TextDrawSetString(Textdraw1, newtext);
    TextDrawHideForPlayer(playerid, Textdraw1);
    return 1;
}
public OnPlayerText(playerid, text[])
{
        SetPlayerChatBubble(playerid, text, 0x0dff00AA, 70.0, 10000);
        return 1;
}
forward WeatherAndTime();
public WeatherAndTime()
{
    new rwt = random(sizeof RandomWorldTime);
SetWorldTime(RandomWorldTime[rwt][0]);
new rw = random(sizeof RandomWeather);
SetWeather(RandomWeather[rw][0]);
SendClientMessageToAll(0xFFFFFF, \"{0x0000BBAA}Servername: {FFFFFF}Weather and time updated.\");// Sends a message every ten minutes to all players.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal