Question to flhook for check a ID and print
-
Hallo,
firstly sry for my english i hope you understand it…because i am german.My Question:
There is a Function where the script can get the ID from the charnameIs there any function where I can check if there exist a ID
for example I Have The ID 1 and want to check is on the the server a person with ID 1 ???
and my second question:
Is there a print-function where you can print a message to all players? -
There is a Function where the script can get the ID from the charname
Is there any function where I can check if there exist a ID
for example I Have The ID 1 and want to check is on the the server a person with ID 1 ???
You should be able to call Players.FindAccountFromClientID with the client ID to check if there is someone on the server with a certain client ID - if there isn’t then the pointer to the returned CAccount should be 0, so```
if(!Players.FindAccountFromClientID(iClientID))
//No player with client ID of iClientID
else
//There is a player with client ID of iClientID@Geramy: > Is there a print-function where you can print a message to all players? Yep, check out PrintUniverseText and HkMsgU.