Jump to content

Not able to give player Airstrike signal

Fixed 1.1.4 1.1.5

Rust Admin
Rust Admin

Posted

2 issues -
1. The latest file downloaded has 1.1.3 in the .cs file - I believe 1.1.4 is the latest version.
2. When trying to give a player a signal using "GiveAirStrikeSignal <steamID> 1" - it says  "No such player found" every single time.
When using the player name, it works fine.  This was working in previous versions without issue.

Thank you!
 

 

Fruster

Posted

Hey there!

1. I can change the version name if it bothers you

2. Check if your SteamID is correct. Use this command correctly(there are no changes for this command since the last update):

/GiveF15AirStrikeSignal <Player or steamID> <number of items>  - give the player a supply airstrike signal

I have double checked, everything works correctly. Please test it and let me know the results

Fruster

Posted

On 11/27/2024 at 11:20 AM, Rust Admin said:

2 issues -
1. The latest file downloaded has 1.1.3 in the .cs file - I believe 1.1.4 is the latest version.
2. When trying to give a player a signal using "GiveAirStrikeSignal <steamID> 1" - it says  "No such player found" every single time.
When using the player name, it works fine.  This was working in previous versions without issue.

Thank you!
 

 

Were you able to solve the problem?

Rust Admin

Posted

I still cannot use SteamID to give a signal.

"[F15AirStrike] No such player found"

Username works fine.

Fruster

Posted

Can you make a short video where you copy your SteamID from the console and use the command to give yourself an f15 signal?

Rust Admin

Posted

It isn't working - it is not recognizing the steam ID.

I have fixed it by adding another check for a steam ID if the name lookup fails (also need to add System namespace and add UnityEngine.Random for two functions).
This code is working with no issue.

            string playerName = args[0].ToLower();
			//Puts ("F15 AirStrike to: " + playerName);
            BasePlayer targetPlayer = BasePlayer.activePlayerList.FirstOrDefault(p => p._name.ToLower().Contains(playerName));
            if (targetPlayer == null)
            {
				targetPlayer = FindPlayerByID(Convert.ToUInt64(playerName));
				 if (targetPlayer == null)
					{
						player?.ChatMessage("No such player found");
						Puts("No such player found");
						return;
					}
            }

	private BasePlayer FindPlayerByID(ulong id)
        {
            return BasePlayer.allPlayerList.FirstOrDefault(x => x.userID == id) ?? null;           
        }

 

Fruster

Posted

Have you tried to give an f15 signal to an inactive player before?

Fruster

Posted

Now you can give F15 signal to all players, including sleepers

Fruster

Posted

Changed Status from Pending to Fixed

Changed Fixed In to 1.1.5

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.