09.09.2014, 21:22
Quote:
lanmode has nothing to do with how your script works, show your OnPlayerText or whatever command you use for sending messages(chat)
|
pawn Код:
public OnPlayerText(playerid, text[])
{
new giver[MAX_PLAYER_NAME];
new sendername[MAX_PLAYER_NAME];
new giveplayer[MAX_PLAYER_NAME];
new tmp[256];
new string[256];
new giveplayerid;
if(ReactionState == R_STATE_ACTIVE)
{
if(!strcmp(text, ReactionString, false))
{
ReactionState = R_STATE_NOT_ACTIVE;
GetPlayerName(playerid,giveplayer,MAX_PLAYER_NAME);
format(string,sizeof(string),"{FFAF00}Fast Event Bot: {F3FF02}%s {FFFFFF}has won the fast event and recieved {F3FF02}%d$ {FFFFFF}!",giveplayer,ReactionCash);
SendClientMessageToAll(-1,string);
GivePlayerMoney(playerid,ReactionCash);
ReactionCash = 0;
}