Difference between revisions of "07AF"

From GTAMods Wiki
Jump to navigation Jump to search
m
 
Line 1: Line 1:
 
{{OpCode
 
{{OpCode
| ini        = 07AF=2,%2d% %1d%
+
| games      = {{Icon|SA}}
 +
| command    = GET_PLAYER_GROUP
 
| description = Gets the player's group
 
| description = Gets the player's group
| p1          = Player handle
+
| syntax1    = 07AF: [''var''] = player [''player handle''] group
| p2          = Variable to store the group handle
+
| p1t        = [''player handle'']
| game        = San Andreas
+
| p1d        = The [[0053|handle of the player]]
 +
| p2t        = [''var'']
 +
| p2d        = Variable to store the handle of the group
 
| native      = [[GET_PLAYER_GROUP]]
 
| native      = [[GET_PLAYER_GROUP]]
 
}}
 
}}
This gets the player's group to be used in [[Special:WhatLinksHere/{{PAGENAMEE}}|group-related]] opcodes. Note that the parameters are swapped.
 
[[Sanny Builder]] example:<source lang="scm">07AF: $PLAYER_GROUP = player $PLAYER_CHAR group</source>
 
  
==Note==
+
This opcode gets the player's group to be used in [[Special:WhatLinksHere/{{PAGENAMEE}}|group-related]] opcodes.
The above format is more commonly used. The actual format of this opcode is in order:<br>
 
<code>07AF=2,%1d% %2d%</code><br>
 
The format to use depends on which INI file you use.<br>
 
  
==Keywords==
+
== Keywords ==
 
get, player, group
 
get, player, group

Latest revision as of 01:21, 25 November 2016

San Andreas GET_PLAYER_GROUP


Description
Gets the player's group
Syntax
07AF: [var] = player [player handle] group
Parameter
[player handle]
The handle of the player
[var]
Variable to store the handle of the group
Native analog
GET_PLAYER_GROUP

This opcode gets the player's group to be used in group-related opcodes.

Keywords

get, player, group