30.08.2012, 14:30
The player who type first g1w41er2FAwd win 2 score. It must also give jumbled letters and numbers. Then Show this Every 10 minutes..
Anyone know what you call this?
I'm not sure about this script below.
EDIT: It gives money not Score
i need the Score one.
Anyone know what you call this?
I'm not sure about this script below.
EDIT: It gives money not Score

pawn Код:
#include <a_samp>
#define COLOR_GREEN 0x00A800AA
new MinQuestionMoney = 250; // 250 is ajustable to any number you want the minimal
new MaxQuestionMoney = 750; // 750 is ajustable to any number you want the maximal to gether it will get a number beside the min and the max
new RandomQuestionMoney;
new QuestionStarted;
new Question[32];
new PlayerName[MAX_PLAYERS][MAX_PLAYER_NAME];
forward SendQuestionForMoney();
public OnFilterScriptInit()
{
SetTimer("SendQuestionForMoney", 240000, true);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public SendQuestionForMoney()
{
new string[128];
new qstring[32];
RandomQuestionMoney = MinQuestionMoney+random(MaxQuestionMoney-MinQuestionMoney);
format(qstring, sizeof(qstring), "%d%d%d%d%d%d%d%d", random(9), random(9), random(9), random(9), random(9), random(9), random(9), random(9));
strmid(Question, qstring, false, strlen(qstring), 32);
format(string, sizeof(string), "** Question: Are you still alive? **: The fastest who types %s will earn $%d,-!", qstring, RandomQuestionMoney);
SendClientMessageToAll(COLOR_GREEN, string);
QuestionStarted = 1;
return 1;
}
public OnPlayerText(playerid, text[])
{
if(QuestionStarted == 1 && strfind(text[0], Question, false) == 0)
{
new string[128];
format(string, sizeof(string), "$$$ %s has won $%d,- by typing '%s' the fastest! $$$", PlayerName[playerid], RandomQuestionMoney, Question);
SendClientMessageToAll(COLOR_GREEN, string);
GivePlayerMoney(playerid, RandomQuestionMoney);
QuestionStarted = 0;
return 0;
}
return 1;
}