Pular para o conteúdo principal

394 documentos selecionados com "player"

Ver todas os Marcadores

AllowPlayerTeleport

Enable/Disable the teleporting ability for a player by right-clicking on the map.

BeginObjectEditing

Allows a player to edit an object (position and rotation) using their mouse on a GUI (Graphical User Interface).

ClearAnimations

Clears all animations for the given player (it also cancels all current tasks such as jetpacking, parachuting, entering vehicles, driving (removes player out of vehicle), swimming, etc).

DestroyPlayerObject

Destrói um objeto de jogador (player-object) criado usando CreatePlayerObject.

DisablePlayerRaceCheckpoint

Disable any initialized race checkpoints for a specific player, since you can only have one at any given time.

EditPlayerObject

Allows players to edit a player-object (position and rotation) with a GUI and their mouse.

GameTextForPlayer

Shows 'game text' (on-screen text) for a certain length of time for a specific player.

GangZoneGetPos

Get the position of a gangzone, represented by minX, minY, maxX, maxY coordinates

GetGameText

Returns all the information on the given game text style.

GetMaxPlayers

Retorna o número máximo de jogadores que podem entrar no servidor, conforme definido pela variável 'maxplayer' no servidor.

GetPlayerAmmo

Gets the amount of ammo in a player's current weapon.

GetPlayerArmour

This function stores the armour of a player into a variable.

GetPlayerCameraFrontVector

This function will return the current direction of player's aiming in 3-D space, the coords are relative to the camera position, see GetPlayerCameraPos.

GetPlayerCameraUpVector

This function returns the vector, that points to the upside of the camera's view, or, in other words, to the middle top of your screen.

GetPlayerHealth

A função GetPlayerHealth permite obter a vida de um jogador.

GetPlayerIp

Obtém o endereço IP de um jogador específico e armazena-o em uma string.

GetPlayerKeys

Verifica quais teclas um jogador está pressionando.

GetPlayerMenu

Obtém o ID do menu que o player está a visualizar no momento (mostrado por ShowMenuForPlayer).

GetPlayerPos

Get the position of a player, represented by X, Y and Z coordinates.

GetPlayers

Gets an array variable of the IDs of the current players on the server.

GetPlayerScore

This function returns a player's score as it was set using SetPlayerScore.

GetPlayerVehicleID

Esta função obtém o ID do veículo em que o jogador está atualmente.

GetSpawnInfo

Return the current spawn data for a player, where they will spawn next.

HasGameText

Does the player currently have text in the given gametext style displayed?

IsPlayerConnected

Checks if a player is connected (if an ID is taken by a connected player).

IsPlayerInAnyVehicle

Verifica se um jogador está dentro de qualquer veículo (como motorista ou passageiro).

IsPlayerInCheckpoint

Check if the player is currently inside a checkpoint, this could be used for properties or teleport points for example.

IsPlayerNPC

Check if a player is an actual player or an NPC.

OnPickupStreamIn

Este callback é chamado quando um pickup entra no campo visual de um jogador.

OnPickupStreamOut

Este callback é chamado quando um pickup sai do campo visual de um jogador.

OnPlayerClickGangZone

Este callback é chamado quando um jogador clica em uma gangzone no mapa do menu de pausa (clicando com o botão direito).

OnPlayerClickMap

OnPlayerClickMap é chamado quando um jogador pocisiona um ponto no mapa do menu de pausa (clicando com botão direito).

OnPlayerClickPlayerGangZone

Este callback é chamado quando um jogador clica em uma gangzone de jogador no mapa do menu de pausa (clicando com o botão direito).

OnPlayerClickTextDraw

Esta callback é chamada quando um jogador clica em uma textdraw ou cancela a seleção pressionando ESC.

OnPlayerCommandText

Esta callback é chamada quando o jogador entra com um comando na janela de chat do cliente.

OnPlayerConnect

Esta callback é chamda quando um jogador conecta no servidor.

OnPlayerDeath

Esta callback é chamada quando um jogador morre, tanto por suicídio ou por ser morto por outros jogadores.

OnPlayerEditObject

Esta callback é chamada quando um jogador termina de editar um objeto (EditObject/EditPlayerObject).

OnPlayerEnterCheckpoint

Esta callback é chamada quando um jogador entre em um checkpoint colocado para aquele jogador.

OnPlayerEnterVehicle

Esta callback é chamada quando um jogador começa a entrar em um veículo, isso significa que o jogador não está no veículo ainda quando esta callback é chamada.

OnPlayerKeyStateChange

Esta callback é chamada quando o estado de qualquer tecla suportada muda (pressionado/solto)

OnPlayerLeaveCheckpoint

Esta callback é chamada quando um jogador sai de um checkpoint definido para eles por SetPlayerCheckpoint.

OnPlayerObjectMoved

Esta callback é chamada quando o objeto de um jogador é movido após o MovePlayerObject (quando para de se mover).

OnPlayerPickUpPickup

Esta callback é chamada quando um jogador coleta um pickup criado com CreatePickup.

OnPlayerRequestClass

Chamado quando um jogador muda de classe na seleção de classe (e quando a seleção de classe aparece pela primeira vez).

OnPlayerRequestSpawn

Chamada quando um jogador tenta spawnar através da seleção de classe pressionando SHIFT ou clicando no botão 'Spawn'.

OnPlayerSelectObject

Esta callback é chamada quando um jogador seleciona um objeto após SelectObject ser usado.

OnPlayerStreamIn

Este callback é chamado quando um jogador é transmitido pelo cliente de outro jogador.

OnPlayerStreamOut

Este callback é chamado quando um jogador é destreado pelo cliente de outro jogador.

OnPlayerText

Executada quando o Player envia uma mensagem no chat.

OnPlayerUpdate

Essa callback é executada quando o cliente/player faz o update do seu status para o servidor.

OnPlayerWeaponShot

Essa callback é executada todas as vezes que o player realiza um disparo com uma arma.

OnScriptLoadPlayer

Este callback é chamado para cada jogador conectado quando um script é carregado.

OnScriptUnloadPlayer

Este callback é chamado para cada jogador conectado quando um script é descarregado.

PlayCrimeReportForPlayer

This function plays a crime report for a player - just like in single-player when CJ commits a crime.

Player States

A list of all the player states used by GetPlayerState function or OnPlayerStateChange callback.

PlayerGangZoneGetPos

Get the position of a gangzone, represented by minX, minY, maxX, maxY coordinates

PlayerTextDrawTextSize

Change the size of a player-textdraw (box if PlayerTextDrawUseBox is enabled and/or clickable area for use with PlayerTextDrawSetSelectable).

RemovePlayerMapIcon

Removes a map icon that was set earlier for a player using SetPlayerMapIcon.

SetCameraBehindPlayer

Restore the camera to a place behind the player, after using a function like SetPlayerCameraPos.

SetPlayerColor

Set the colour of a player's nametag and marker (radar blip).

SetPlayerDrunkLevel

Sets the drunk level of a player which makes the player's camera sway and vehicles hard to control.

SetPlayerPosFindZ

This sets the players position then adjusts the players z-coordinate to the nearest solid ground under the position.

SetPlayerShopName

Loads or unloads an interior script for a player (for example the ammunation menu).

ShowPlayerNameTagForPlayer

This functions allows you to toggle the drawing of player nametags, healthbars and armor bars which display above their head.

Special Actions

A list of all the player special actions used by GetPlayerSpecialAction and SetPlayerSpecialAction functions.

StopPlayerObject

Stop a moving player-object after MovePlayerObject has been used.

StopRecordingPlayerData

Stops all the recordings that had been started with StartRecordingPlayerData for a specific player.

UsePlayerPedAnims

Uses standard player walking animation (animation of the CJ skin) instead of custom animations for every skin (e.g. skating for skater skins).