[FS] Fast Reactions

Započeo [SF] KalleN, Novembar 18, 2013, 19:05:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Ova filterscripta je namenjena(moze se reci) za zabavu, dakle 'Brze Reakcije' iliti Brzi Prsti, na svaka tri minuta dolazi nova rec(mozete promeniti vreme) i ko prvi napise, osvaja nagradu - vreme mozete menjati sami...
===============================================================================
FS preuzeta sa: SA:MP Foruma - Izradio: RyDeR` // Preveo i uredio: Ja
===============================================================================
Slike: #Slika_1 #Slika_2
===============================================================================
Download: Click
// Ovo sto pise da ce igrac osvojiti 1 Reaction Poen, pa pise da je dobio 2 je mali bugic, a mrzelo me ispravljati, ukoliko vam smeta, mozete ispraviti u scripti. :)


nije lose

P.S pa cimbure ovo je prvi post u 3 mj sto ga ja vidim xd


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!


Citat: xyzcod2 poslato Novembar 18, 2013, 19:35:54 POSLE PODNE
nije lose

P.S pa cimbure ovo je prvi post u 3 mj sto ga ja vidim xd
Nisam razumeo :D ?
Ugl. vratio sam se na BS :D
RESPECT :
Vegas & C++

pa da, kazem da sí neaktivan


[FS]Rent
[FS] Vremenska prognoza
[TuT] PayDay
[TuT]PayDay sistem[UPDATED]
Moja Biografija

Respect:Mr.Gagi,FlasH,Streetboy,David (Sabljak) A.k.A SABO(T)
ÄŒovjek nije stvoren za poraze, moze biti unisten, ali ne i pobjeÄ'en!




evo bez buga
//============================================================================//
//===================== [FS] Fast Reactions by RyDeR =========================//
//========================= Preveo i uredio: nikolla =========================//
//============================================================================//
//-------------------- includes --------------------//
#include <a_samp>
//----------------------------------------------------------------------------//
#define DGREEN        "{004000}"
#define GREY          "{808080}"
#define WHITE         "{FFFFFF}"
#define SC            "{494EF5}"
//----------------------------------------------------------------------------//
#if !defined Loop
#define Loop(%0,%1) for(new %0 = 0; %0 != %1; %0++)

#endif
//----------------------------------------------------------------------------//
#if !defined function
#define function%0(%1) forward%0(%1); public%0(%1)

#endif
//----------------------------------------------------------------------------//
#if !defined TIME
#define TIME 180000

#endif
//----------------------------------------------------------------------------//
new xCharacters[][] =
{
   "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M",
   "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z",
   "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m",
   "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z",
   "0", "1", "2", "3", "4", "5", "6", "7", "8", "9"
},
   xChars[16] = "",
   xReactionTimer,
   xCash,
   xScore,
bool: xTestBusy;
//----------------------------------------------------------------------------//
public OnFilterScriptInit() {
//----------------------------------------------------------------------------//
   xReactionTimer = SetTimer("xReactionTest", TIME, 1);
//----------------------------------------------------------------------------//
   print(" ");
   print(" [FS] Fast Reactions by RyDeR` ");
   print(" ");
//----------------------------------------------------------------------------//
   return 1; }
//----------------------------------------------------------------------------//
public OnFilterScriptExit() {

   KillTimer(xReactionTimer);

   return 1; }

//----------------------------------------------------------------------------//
public OnPlayerText(playerid, text[]) {

   switch(xTestBusy) {
   case true: {
   if(!strcmp(xChars, text, false)) {
   new string[256], pName[MAX_PLAYER_NAME];
   GetPlayerName(playerid, pName, sizeof(pName));
   format(string, sizeof(string), ""SC"Reaciont-BOT: "GREY"Igrac "WHITE"%s "GREY"je bio najbrzi i osvojio odredjenu svotu novca i Reaction Poena.", pName);
   SendClientMessageToAll(-1, string);
   format(string, sizeof(string), ""SC"Reaction-BOT: "DGREEN"Cestitam! "GREY"Bio si najbrzi i osvojio "DGREEN"%d$ "GREY"i "WHITE"%d "GREY"Reaction Poena.", xCash, xScore);
   SendClientMessage(playerid, -1, string);
   GivePlayerMoney(playerid, xCash);
   SetPlayerScore(playerid, GetPlayerScore(playerid) + xScore);
   xReactionTimer = SetTimer("xReactionTest", TIME, 1);
   xTestBusy = false; } } }

   return 1; }

//----------------------------------------------------------------------------//
function xReactionProgress() {

   switch(xTestBusy) {
   case true: {
   new string[128] ;
   format(string, sizeof(string), ""SC"Reaction-BOT: "GREY"Niko nije napisao rec kako treba!", (TIME/60000));
   SendClientMessageToAll(-1, string);
   xReactionTimer = SetTimer("xReactionTest", TIME, 1); } }

   return 1; }

//----------------------------------------------------------------------------//
function xReactionTest() {

   new xLength = (random(8) + 2), string[256] ;
   xCash = (random(10000) + 20000);
   xScore = (random(2)+1);
   format(xChars, sizeof(xChars), "");
   Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);
   format(string, sizeof(string), ""SC"Reaction-BOT: "GREY"Igra je pocela! Ko prvi upise "WHITE"%s "GREY"osvaja "DGREEN"%d$ "GREY"i "WHITE"%i "GREY"Reaction Poen.", xChars, xCash, xScore);
   SendClientMessageToAll(-1, string);
   KillTimer(xReactionTimer);
   xTestBusy = true;
   SetTimer("xReactionProgress", 30000, 0);

   return 1; }
Lawless RolePlay Gaming ! The best gaming ever!
Join us and have a fun !
IP: samp.lawlessrp.com:7777
TS: ts.lawlessrp.com
Forum: lawlessrp.com