- 0
problema bani din event
-
Similar Content
-
Recently Browsing 0 members
- No registered users viewing this page.
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.
Question
duplex
Folosesc fs fast-event(cine scrie primu "nsdkfn4wt55" primeste suma de bani,pentru cei care nu stiu) si bani castigati din fast-event nu pot sa-i depun in banca,ma poate ajuta cineva?
[pawn] #include <a_samp>
#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 PURPLE
#define PURPLE \
0xBF60FFFF
#endif
#if !defined GREEN
#define GREEN \
0x94D317FF
#endif
#if !defined TIME
#define TIME \
900000
#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,
bool: xTestBusy
;
public OnFilterScriptInit()
{
xReactionTimer = SetTimer("xReactionTest", TIME, 100);
return 1;
}
public OnFilterScriptExit()
{
KillTimer(xReactionTimer);
return 1;
}
public OnPlayerText(playerid, text[])
{
switch(xTestBusy)
{
case true:
{
if(!strcmp(xChars, text, false))
{
new
string[128],
pName[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "« \%s\" a castigat fast event-ul.A câstigat $%d banii. »", pName,xCash);
SendClientMessageToAll(GREEN, string);
GivePlayerMoney(playerid, xCash);
xReactionTimer = SetTimer("xReactionTest", TIME, 100);
xTestBusy = false;
}
}
}
return 1;
}
function xReactionTest()
{
new
xLength = (random(8) + 2),
string[128]
;
xCash = (random(10000) + 50000);
format(xChars, sizeof(xChars), "");
Loop(x, xLength) format(xChars, sizeof(xChars), "%s%s", xChars, xCharacters[random(sizeof(xCharacters))][0]);
format(string, sizeof(string), "« Cine scrie primu %s castiga $%d banii. »", xChars, xCash);
SendClientMessageToAll(GREEN, string);
KillTimer(xReactionTimer);
xTestBusy = true;
SetTimer("xReactionProgress", 100, 0);
return 1;
}
[/pawn]
1 answer to this question
Recommended Posts