SA-MP Forums Archive
[Help]Timer/Failed - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]Timer/Failed (/showthread.php?tid=553477)



[Help]Timer/Failed - astanalol - 29.12.2014

Hello Guys
i Want Know How To Make Failed Robing And Timer 45Sec To He is Will Take All Pickups
After 45Sec Finished Start New Timer 5Min To Goto Checkpoints
Please Help +Rep


Re: [Help]Timer/Failed - astanalol - 30.12.2014

Bumb


Re: [Help]Timer/Failed - UltraScripter - 30.12.2014

For example you want with checkpoint's ... !

pawn Код:
CMD:rob(playerid, params[])
{
    SetPlayerCheckpoint(playerid, x, y, z, size);
    SetTimer("Timeout", 60000, false);
    return 1;
}

forward Timeout(playerid);

public Timeout(playerid)
{
      DisablePlayerCheckpoint(playerid);
      SendClientMessage(playerid, 0xFF0000FF, "Time Out!");
      return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
      DisablePlayerCheckpoint(playerid);
      KillTimer(playerid);
      SendClientMessage(playerid, 0x00FF00FF, "Succes");
      return 1;
}



Re: [Help]Timer/Failed - astanalol - 30.12.2014

sorry i use 4 pickups in robing
not checkpoints
PHP код:
public OnPlayerPickUpPickup(playeridpickupid)
{
    if(
pickupid == pickup4d)
    {
    
GivePlayerMoney(playerid1000);
    
DestroyPickup(pickup4d);
    }
    else if(
pickupid == pickup4d1)
    {
    
GivePlayerMoney(playerid1000);
    
DestroyPickup(pickup4d1);
    }
    else if(
pickupid == pickup4d2)
    {
    
GivePlayerMoney(playerid1000);
    
DestroyPickup(pickup4d2);
    }
    else if(
pickupid == pickup4d3)
    {
    
GivePlayerMoney(playerid1000);
    
DestroyPickup(pickup4d3);
    } 
PHP код:
CMD:robbery(playeridparams[])
{
    
pickup4d CreatePickup(12741,1966.6005,1021.6895,992.46881);
    
pickup4d1 CreatePickup(12121,1966.5988,1029.6251,992.4745,1);
    
pickup4d2 CreatePickup(12121,1966.5957,1013.9757,992.4688,1);
    
pickup4d3 CreatePickup(12741,1966.5984,1006.2905,992.47451);
    return 
1;

how to make it the timer 45 sec to robing all this after that 5Min
and Failed in My Commands ?
+Repppp


Re: [Help]Timer/Failed - astanalol - 30.12.2014

please help!


Re: [Help]Timer/Failed - astanalol - 30.12.2014

please guys