C#编程练习
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GTA;
using GTA.Math;
using GTA.Native;
namespace TutorialScript //Your Mod Name Here
{
public class Main : Script
{
public Main()
{
Tick += onTick;
KeyDown += onKeyDown;
}
private void onTick(object sender, EventArgs e)
{
}
private void onKeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.NumPad7)
{
if (Game.Player.WantedLevel == 0)
{
UI.ShowSubtitle("You are not wanted");
}
else
{
Game.Player.WantedLevel = 0;
}
}
}
}
}
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using GTA;
using GTA.Math;
using GTA.Native;
namespace TutorialScript //Your Mod Name Here
{
public class Main : Script
{
public Main()
{
Tick += onTick;
KeyDown += onKeyDown;
}
private void onTick(object sender, EventArgs e)
{
}
private void onKeyDown(object sender, KeyEventArgs e)
{
if (e.KeyCode == Keys.NumPad7)
{
if (Game.Player.WantedLevel == 0)
{
UI.ShowSubtitle("You are not wanted");
}
else
{
Game.Player.WantedLevel = 0;
}
}
}
}
}
上一篇:邓紫棋-句号。
声明:以上文章均为用户自行添加,仅供打字交流使用,不代表本站观点,本站不承担任何法律责任,特此声明!如果有侵犯到您的权利,请及时联系我们删除。
文章热度:☆☆☆☆☆
文章难度:☆☆☆☆☆
文章质量:☆☆☆☆☆
说明:系统根据文章的热度、难度、质量自动认证,已认证的文章将参与打字排名!
本文打字排名TOP20
登录后可见