Timer help
#1

My codes:
pawn Код:
#include <a_samp>
//#if defined FILTERSCRIPT
new ferryI;
new ferry;
new FerryObject[30];

#define grey                                                          0xB4B4B4FF
#define yellow                                                        0xF5FF00FF

forward LOLS(playerid);
forward LOLIS(playerid);

public OnFilterScriptInit()
{
    SetTimer("FerryIS", 240000, true);
MY  CODES
    SendClientMessageToAll(0xFF000000, "{FF8000}The ferry is going to Island");
    return 1;
}

public LOLIS(playerid)
{
    if(LOLI == 1)
    {
        SendClientMessage(playerid, 0xFF000000, "** Ferry docked to island!");
        return 1;
    }
    MY LINES
    SendClientMessage(playerid, 0xFF000000,"{FF8000}The ferry is moving back to Los Santos.");
    SetTimer("FerryLS", 120000, 0);
    return 0;
}

public LOLIS(playerid)
{
    MoveObject(ferry,MY COORDS);
    PlayerPlaySound(playerid, 1153, 2650.21191, -2291.62915, -0.03891);
    ferryI = 0;
    return 1;
}
My problem is : I only get the "The ferry is moving back to los santos". but it should give the " the ferry is going to island" too.

I want something like : after staying 2 min in dock it will say: "The ferry is going to Island" and will go.

stay 2 min in per dock.
Reply


Messages In This Thread
Timer help - by Tuntun - 16.06.2014, 04:43
Re: Timer help - by Laure - 16.06.2014, 05:02
Re: Timer help - by superrobot48 - 16.06.2014, 05:04
Re: Timer help - by iOxide - 16.06.2014, 06:16

Forum Jump:


Users browsing this thread: 3 Guest(s)