Advertisement
OPVL

GTA:O Friend Condition

Apr 16th, 2017
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.22 KB | None | 0 0
  1. //FRIEND CHECK
  2. bool isPlayerFriend(Player player) {
  3.     if (NETWORK_IS_PLAYER_CONNECTED(player)) {
  4.         int handle;
  5.         NETWORK_HANDLE_FROM_PLAYER(player, &handle, 13);
  6.         return NETWORK_IS_FRIEND(&handle);
  7.     }
  8.     return false;
  9. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement