Minigun Timer [reps+]
#2

Like
Add at the top of the script

pawn Код:
forward MinigunTimer();
And then

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/minigunevent", cmdtext, true, 10) == 0)
    {
        for (new i = 0; i < MAX_PLAYERS; i++)
           {
                if (IsPlayerConnected(i))
                {
                GivePlayerWeapon(playerid, 38, 999999);
                }
           }
           SetTimer("SaveDataTimer",60000 , 0);
    return 1;
    }
}

public MinigunTimer()
{
      foreach(new playerid : Player)
      {
      GivePlayerWeapon(playerid, 38, 0);
      }
      return 1;
}
Didn't tested. Tell me if it works.

And I recommand Benzo's script
Reply


Messages In This Thread
Minigun Timer [reps+] - by SPA - 25.02.2014, 22:44
Re: Minigun Timer [reps+] - by ZeroTheScyther - 25.02.2014, 23:07
Re: Minigun Timer [reps+] - by Threshold - 25.02.2014, 23:19
Re: Minigun Timer [reps+] - by Mattakil - 25.02.2014, 23:19
Re: Minigun Timer [reps+] - by ZeroTheScyther - 25.02.2014, 23:23
Re: Minigun Timer [reps+] - by Mattakil - 25.02.2014, 23:48
Re: Minigun Timer [reps+] - by Threshold - 26.02.2014, 00:41
Re: Minigun Timer [reps+] - by SPA - 26.02.2014, 10:01

Forum Jump:


Users browsing this thread: 1 Guest(s)