[Help] Setting a timer to delay rest of command
#5

I just ran what I had through it's paces. Typed the command ingame waited 2 minutes, and nothing occured.
Anyways here's what I have so far:
pawn Код:
forward TaxiTimer();

public TaxiTimer()
{
    new tmp[256];
    new playa = ReturnUser(tmp);
    new Float:Xb, Float:Yb, Float:Zb;
    GetPlayerPos(playa, Xb, Yb, Zb);
    new carid = CreateVehicle(438, Xb,Yb+5,Zb+1, 0.0, 6, 6, 60000);
    CreatedCars[CreatedCar] = carid;
    CreatedCar ++;
}

    if(strcmp(cmd, "/gettaxi", true) == 0)
    {
        SendClientMessage(playerid, COLOR_HELP, "A Taxi is in-bound to your position in 2 Minutes");
        SetTimer ("TaxiTimer", 120000,1);
        return 1;
    }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)