Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×
Sign in to follow this  
Tankbuster

getplayerUID problems

Recommended Posts

// Player UID stuff by Tankbuster

hint "CheckUI.sqf running";

_uid = parseNumber getplayerUID player;
hint format ["Player UID = %1", _uid];
if (_uid == 123456) then
{
 sleep 2;
 side_mission_winner = -1;
 side_mission_resolved = true;
 // hint "side mission ended manually";
}
else
{
 sleep 2;
 hint "not allowed!";
}

This doesn't work as expected. In lieu of an isAdmin command I'm doing this as a fix for Domination side missions not ending. I want only certain players to end the mission. This is set off by a trigger.

Every time we try it, even if the right player enters the trigger, the else action happens.

I've tried

_uid = getplayerUID player;
hint format ["Player UID = %1", _uid];
if (_uid == "123456") then

as an alternative, with same results.

Note that the hint format always displays the correct number.

Any thoughts?

Edited by Tankbuster

Share this post


Link to post
Share on other sites
Sign in to follow this  

×