Szerző Téma: Count help.  (Megtekintve 667 alkalommal)

Penzykee.

  • Vendég
Count help.
« Dátum: 2011. Március 01. - 19:43:31 »
0 Show voters
Hali.
Nekem egy count script kéne..
Nem találtam!
És ne keljen érte fizetni + jólegyen.
Thx. :D

Nem elérhető ►ѕтa

  • 2016
  • Newbie
    • Profil megtekintése
Count help.
« Válasz #1 Dátum: 2011. Március 01. - 19:46:35 »
0 Show voters

Penzykee.

  • Vendég
Count help.
« Válasz #2 Dátum: 2011. Március 01. - 19:53:37 »
0 Show voters
De direkt leírtam h ne keljen érte fizetni.. :D

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Count help.
« Válasz #3 Dátum: 2011. Március 01. - 21:14:51 »
0 Show voters
Eredetileg IceMan írta, én csak kivettem belõle a pénzlevételt:
 

#include <a_samp>
new string[128], name[MAX_PLAYER_NAME], Text:CountTD, Count = 5, CountText[5][5] = { \"~r~1\", \"~g~2\", \"~g~3\", \"~w~4\", \"~w~5\" };
public OnFilterScriptInit()
{
   TextDrawCreate(55.000000,310.000000, \"--\");
   TextDrawTextSize(CountTD,63.000000,825.000000);
   TextDrawAlignment(CountTD, 2);
   TextDrawFont(CountTD,2);
   TextDrawLetterSize(CountTD,0.499999,1.800000);
   TextDrawSetProportional(CountTD,2);
   TextDrawSetShadow(CountTD,1);
   TextDrawSetOutline(CountTD, 1);
   return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp(cmdtext, \"/visszaszam\", true)==0)
    {
        if(Count >= 5)
        {
            GetPlayerName(playerid, name, sizeof(name));
            format(string, sizeof(string), \"%s játékos elindította a visszaszámolást!\", name);
            SendClientMessageToAll(0xFFFF00AA, string);
            CountDown();
            return 1;
        }
        else
        {
             SendClientMessage(playerid, 0xFF830000, \"Már megy egy visszaszámlálás!\");
             return 1;
        }
    }
    return 0;
}
public CountDown();
public CountDown()
{
    new str[32];
    if (Count > 0 )
    {
         format(str,sizeof(str), \"%s\",CountText[Count-1]);
        TextDrawSetString(CountTD, str);
        TextDrawShowForAll(CountTD);
        Count--;
        SetTimer(\"CountDown\", 1000, 0);
        SoundForAll(1056);
    }
    else if(Count == 0)
    {
        TextDrawSetString(CountTD,\"  ~g~GO!GO!GO!\");
        TextDrawShowForAll(CountTD);
        SoundForAll(1057);
        Count = 5;
        SetTimer(\"DestroyText\",3000,0);
    }
    return 1;
}
public DestroyText();
public DestroyText() { TextDrawHideForAll(Text:CountTD); }
SoundForAll(sound) { for (new i = 0, j = GetMaxPlayers(); i < j; i ++) if (IsPlayerConnected(i)) PlayerPlaySound(i,sound,0.0,0.0,0.0); }

 

Idézetet írta: staR date=1299005195\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"6535\" data-ipsquote-contentclass=\"forums_Topic
http://sampforum.hu/index.php?topic=8718.msg100129#msg100129
 
Fizetés alatt nem PayPal-t értett :D

Penzykee.

  • Vendég
Count help.
« Válasz #4 Dátum: 2011. Március 02. - 12:51:16 »
0 Show voters
xDDDDD
Thx.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal