mirror of
https://github.com/Resxt/Plutonium-T6-Scripts.git
synced 2025-10-08 15:46:40 +00:00
chat_command_info 1.2.0
Added listperks command
This commit is contained in:
@@ -10,6 +10,7 @@ Init()
|
||||
if (!IsMultiplayerMode())
|
||||
{
|
||||
CreateCommand(level.chat_commands["ports"], "listpowerups", "function", ::ListPowerupsCommand, 2);
|
||||
CreateCommand(level.chat_commands["ports"], "listperks", "function", ::ListPerksCommand, 2);
|
||||
}
|
||||
|
||||
CreateCommand(level.chat_commands["ports"], "listweapons", "function", ::ListWeaponsCommand, 2);
|
||||
@@ -44,6 +45,16 @@ ListPowerupsCommand(args)
|
||||
}
|
||||
}
|
||||
|
||||
ListPerksCommand(args)
|
||||
{
|
||||
error = self thread ListPerks();
|
||||
|
||||
if (IsDefined(error))
|
||||
{
|
||||
return error;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Logic section */
|
||||
@@ -145,4 +156,9 @@ ListAttachments(weaponName)
|
||||
ListPowerups()
|
||||
{
|
||||
self thread TellPlayer(GetAvailablePowerups(), 2);
|
||||
}
|
||||
|
||||
ListPerks()
|
||||
{
|
||||
self thread TellPlayer(GetAvailablePerks(), 2);
|
||||
}
|
Reference in New Issue
Block a user