package Ġch . lead rian . samp . k amp . examples . am x inter opt est Ċ Ċ import Ġch . lead rian . samp . k amp . core . api . am x . A mx Native Function 1 Ċ import Ġch . lead rian . samp . k amp . core . api . am x . A mx Native Function 2 Ċ import Ġch . lead rian . samp . k amp . core . api . am x . A mx Native Function 3 Ċ import Ġch . lead rian . samp . k amp . core . api . am x . A mx Native Function 4 Ċ import Ġch . lead rian . samp . k amp . core . api . am x . Mutable Float Cell Ċ import Ġch . lead rian . samp . k amp . core . api . am x . Output String Ċ import Ġch . lead rian . samp . k amp . core . api . command . Commands Ċ import Ġch . lead rian . samp . k amp . core . api . command . annotation . Command Ċ import Ġch . lead rian . samp . k amp . core . api . command . annotation . Un listed Ċ import Ġch . lead rian . samp . k amp . core . api . constants . SAMP Constants Ċ import Ġch . lead rian . samp . k amp . core . api . constants . San And reas Zone Ċ import Ġch . lead rian . samp . k amp . core . api . data . Colors Ċ import Ġch . lead rian . samp . k amp . core . api . data . vector 3 D Of Ċ import Ġch . lead rian . samp . k amp . core . api . entity . Player Ċ import Ġch . lead rian . samp . k amp . core . api . text . Message Sender Ċ import Ġjavax . inject . Inject Ċ Ċ class ĠCommands Ċ @ Inject Ċ constructor ( private Ġval Ġmessage Sender : ĠMessage Sender ) Ġ: ĠCommands () Ġ{ ĊĊĠĠĠ Ġ@ Un listed ĊĠĠĠ Ġ@ Command ĊĠĠĠ Ġfun Ġcmds ( player : ĠPlayer ) Ġ{ ĊĠĠĠĠĠĠĠ Ġshow Command List ( player ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Command ĊĠĠĠ Ġfun Ġset Pos ( player : ĠPlayer , Ġx : ĠFloat , Ġy : ĠFloat , Ġz : ĠFloat ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcoordinates Ġ= Ġvector 3 D Of ( x , Ġy , Ġz ) ĊĠĠĠĠĠĠĠ Ġplayer . set Coordinates Find Z ( coordinates ) ĊĠĠĠĠĠĠĠ Ġval Ġzone Ġ= ĠSan And reas Zone . get Zone ( coordinates ) Ġ?: Ġ" San ĠAnd reas " ĊĠĠĠĠĠĠĠ Ġmessage Sender . sendMessage To Player ( player , ĠColors . LIGHT _ BLUE , Ġ" Welcome Ġto Ġ{ 0 }", Ġzone ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval ĠSet Player Pos Find Z Ġby ĠA mx Native Function 4 < Int , ĠFloat , ĠFloat , ĠFloat >() ĊĊĠĠĠ Ġ@ Command ĊĠĠĠ Ġfun Ġset Pos 2 ( player : ĠPlayer , Ġx : ĠFloat , Ġy : ĠFloat , Ġz : ĠFloat ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġcoordinates Ġ= Ġvector 3 D Of ( x , Ġy , Ġz ) ĊĠĠĠĠĠĠĠ ĠSet Player Pos Find Z ( player . id . value , Ġx , Ġy , Ġz ) ĊĠĠĠĠĠĠĠ Ġval Ġzone Ġ= ĠSan And reas Zone . get Zone ( coordinates ) Ġ?: Ġ" San ĠAnd reas " ĊĠĠĠĠĠĠĠ Ġmessage Sender . sendMessage To Player ( player , ĠColors . PIN K , Ġ" Welcome Ġto Ġ{ 0 }", Ġzone ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval ĠGet Player Name Ġby ĠA mx Native Function 3 < Int , ĠOutput String , ĠInt >() ĊĊĠĠĠ Ġprivate Ġval ĠSend Client Message To All Ġby ĠA mx Native Function 2 < Int , ĠString >() ĊĊĠĠĠ Ġ@ Command ĊĠĠĠ Ġfun Ġsay ( player : ĠPlayer , Ġtext : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġname Ġ= ĠOutput String ( SAMP Constants . MAX _ PLAYER _ NAME ) ĊĠĠĠĠĠĠĠ ĠGet Player Name ( player . id . value , Ġname , ĠS AMP Constants . MAX _ PLAYER _ NAME ) ĊĠĠĠĠĠĠĠ ĠSend Client Message To All ( player . color . value , Ġ"* Ġ${ name . value } Ġsays : Ġ${ Colors . WHITE . to Embedded String ()} $ text ") ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval ĠGet Player Pos Ġby ĠA mx Native Function 4 < Int , ĠMutable Float Cell , ĠMutable Float Cell , ĠMutable Float Cell >() ĊĊĠĠĠ Ġ@ Command ĊĠĠĠ Ġfun Ġjump ( player : ĠPlayer ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġx Ġ= ĠMutable Float Cell () ĊĠĠĠĠĠĠĠ Ġval Ġy Ġ= ĠMutable Float Cell () ĊĠĠĠĠĠĠĠ Ġval Ġz Ġ= ĠMutable Float Cell () ĊĠĠĠĠĠĠĠ ĠGet Player Pos ( player . id . value , Ġx , Ġy , Ġz ) ĊĠĠĠĠĠĠĠ Ġplayer . coordinates Ġ= Ġvector 3 D Of ( x . value , Ġy . value , Ġz . value Ġ+ Ġ 2 f ) ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġprivate Ġval ĠSet Game Mode Text Ġby ĠA mx Native Function 1 < String >() ĊĊĠĠĠ Ġ@ Command ĊĠĠĠ Ġfun Ġg mt ( player : ĠPlayer , Ġtext : ĠString ) Ġ{ ĊĠĠĠĠĠĠĠ ĠSet Game Mode Text ( text ) ĊĠĠĠ Ġ} Ċ }