heeelp

Započeo Obrisan korisnik
14. Avg. 2009.
1,413
pregleda
8
postova
Deleted User
Obrisan korisnik
14. Avg. 2009.
evo ja sam sa samp foruma skinu ono čudo Reakcija 🙂 pa me zanima ako mi neko može pomoć kako da stavim viÅ¡e nagrada tj viÅ¡e reakcija,evo kod:
#include 

#define time1 240000 //this is the 4 minute minimum gap time
#define time2 180000 // this is the 3 minute max addon time

public OnFilterScriptInit()
{
print("\n--------------------------------------");
print(" ReactiontestFS by tomozj");
print("--------------------------------------\n");

SetTimer("ReactionTest",time1+random(time2),0);

return 1;
}

public OnFilterScriptExit()
{
return 1;
}

new reactionstr; //randomly generated string
new reactioninprog; //what status the reactiontest is at
new reactionwinnerid; //id of the current reactiontest winner
new reactiongap; //timer to restart ReactionTest()

forward ReactionTest();
forward ReactionWin(playerid);
forward SetBack();

public OnPlayerText(playerid, text[])
{
if(!strcmp(text, reactionstr, false))
{
if(reactioninprog == 2) ReactionWin(playerid);
if(reactioninprog == 1)
{
if(reactionwinnerid == playerid)
{
SendClientMessage(playerid,0x247C1BFF,"Vec si pobjedio!");
}
else
{
SendClientMessage(playerid,0x247C1BFF,"Prespor si!");
}
}
return 1;
}

return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{
if(!IsPlayerAdmin(playerid)) return 0; // if player isn't admin, ignore cmds

if (strcmp("/test", cmdtext, true, 10) == 0)
{
ReactionTest();
return 1;
}

if (strcmp("/output reactionstr", cmdtext, true, 10) == 0)
{
    new tmp;
format(tmp,sizeof(tmp),"'reactionstr' output: %d",reactionstr);
    SendClientMessageToAll(0x247C1BFF,tmp);
    return 1;
}
return 0;
}

public ReactionTest()
{
reactionstr = "";
KillTimer(reactiongap);
new str;
new random_set[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; // the set of characters used for the generation of the string
for (new i = 0; i < 8; i++)
{
  reactionstr = random_set[random(sizeof(random_set))];
}
reactioninprog = 2;
format(str,sizeof(str),"** Prvi ko upise %s dobija $10,000!",reactionstr); // announcement
print(str);
SendClientMessageToAll(0xFFFF00FF,str);
}

public ReactionWin(playerid)
{
GivePlayerMoney(playerid, 10000);
SetTimer("SetBack",30,0); // required delay, for some reason.
new reactionwinner;
reactionwinnerid = playerid;
new tempstring;
GetPlayerName(playerid,reactionwinner,sizeof(reactionwinner));
format(tempstring,sizeof(tempstring),"%s je pobjedio na reakciji!",reactionwinner);
SendClientMessageToAll(0xFFFF00FF,tempstring);
reactiongap = SetTimer("ReactionTest",time1+random(time2),0); // sets the timer to restart ReactionTest()
}

public SetBack()
{
reactioninprog = 1;
}
Deleted User
Obrisan korisnik
14. Avg. 2009.
sry za DP,al nije vrag da niko ne zna ili možda ne želi pomoć  ☹️ 😢 ☹️ 😢
Bugs_Bunny
2
Wheel Man
14. Avg. 2009.
travis ne trebas dodavati nikake nove reakcije zato sto je skripta napravljena tako da sama mjenja brojeve i slova ili sta vec je tak da svaki put je druga kombinacija brojeva i slova, koliko sam skontao bar na prvi pogled 
Deleted User
Obrisan korisnik
14. Avg. 2009.
ma nije to već ja hoću da budu različite nagrade ko na EF 🙂
Johny
4
Shot Caller
16. Avg. 2009.
gdje ubacit ovu reakciju mozel pomoc ?
jel ovako kompletan kod ubacim na jedno mjesto ili treba definisat nesto pa na vise dijelova ubacit..pls help
Deleted User
Obrisan korisnik
17. Avg. 2009.
samo da pitam jel ko misli pomoc?? ☹️ ako ne misli onda cu lockat ovo pa cu se snac negdje drugdje  😠 ,nažalost  ☹️
Johny
4
Shot Caller
17. Avg. 2009.
gdje ubacit reakciju moze pomoc :mad:
Deleted User
Obrisan korisnik
20. Avg. 2009.
Johny wrote on August 17, 2009, 9:49 pm:
gdje ubacit reakciju moze pomoc :mad:


da malo promisliÅ¡ znao bi,ali evo ti link da ne naprežeÅ¡ svoj mozak  😉
http://rapidshare.com/files/269535944/reakcija.zip.html
BTW:vidim da niko nece pomoc il ne želi pa ide LOCK

Morate biti prijavljeni da biste odgovorili na ovu temu.

Prijava

© 2026 SmartShark. All rights reserved.

Powered by Momentum|v2026.3.001 Alpha