Bugged or something wrong
#2

Are you actually using the code? Try this:
pawn Код:
//On Top of Script, possibly where other forwards are.
forward TrainCheck();

// On Top of script, Possibly where other global variables are.
new bool:TrainMessageSent;
//Under OnGameModeInit
SetTimer("TrainCheck", 5000, true);
// Anywhere, except in other functions
public TrainCheck()
{
    if(IsPlayerInVehicle(playerid,train))
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,1700.4967 ,-1955.4222,13.5469))
        {
            if(!TrainMessageSent)
            {
                SendClientMessageToAll(COLOR_RED,"Train is in Los Santos you have 10 minutes to get in train");
                TrainMessageSent = true;
            }
        }
        else TrainMessageSent = false;
    }
}
Reply


Messages In This Thread
Bugged or something wrong - by Hoss - 09.11.2010, 11:51
Re: Bugged or something wrong - by TheXIII - 09.11.2010, 12:11
Re: Bugged or something wrong - by Hoss - 09.11.2010, 12:18
Re: Bugged or something wrong - by TheXIII - 09.11.2010, 12:33
Respuesta: Re: Bugged or something wrong - by xenowort - 09.11.2010, 13:41

Forum Jump:


Users browsing this thread: 4 Guest(s)