[Help] Trying to make grenades refill every 5 seconds
Featured Replies
Сейчас на странице 0
- Нет пользователей, просматривающих эту страницу
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Используя этот сайт, вы соглашаетесь Условия использования.
Here is the code I have so far.
using System; using System.Collections.Generic; using System.Linq; using System.Text; using InfinityScript; namespace Nade { public class Nades : BaseScript{ public List PlayerStop = new List(); public bool Nade(Entity player, int amount) { if (PlayerStop.Contains(player.GetField("name"))) return false; var offhand = player.Call("getcurrentoffhand"); player.Call("setweaponammoclip", offhand, amount); player.Call("givemaxammo", offhand); return true; } } }I want the grenades to refill every 5 seconds. Any help?