Aller au contenu principal

404 documents tagués avec "player"

Voir tous les tags

AddPlayerClassEx

Cette fonction est exactement la même que la fonction AddPlayerClass, avec l'ajout d'un paramètre d'équipe.

AllowPlayerTeleport

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

Ban

Ban a player who is currently in the server.

BanEx

Ban a player with a reason.

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).

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

Returns the maximum number of players that can join the server, as set by the server variable 'maxplayers' in server.

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

The function GetPlayerHealth allows you to retrieve the health of a player.

GetPlayerIp

Get the specified player's IP address and store it in a string.

GetPlayerMenu

Gets the ID of the menu the player is currently viewing (shown by 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.

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).

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.

Kick

Kicks a player from the server. They will have to quit the game and re-connect if they wish to continue playing.

OnPickupStreamIn

Ce rappel est appelé lorsqu'un objet à récupérer entre dans la portée visuelle d'un joueur.

OnPickupStreamOut

Ce rappel est appelé lorsqu'un objet à récupérer quitte la portée visuelle d'un joueur.

OnPlayerClickGangZone

Ce rappel est appelé lorsqu'un joueur clique sur une zone de gang sur la carte du menu de pause (en cliquant avec le bouton droit).

OnPlayerClickMap

OnPlayerClickMap est appelé quand un joueur place un point (clic droit) sur la map dans le menu pause.

OnPlayerClickPlayer

Callback appelée quand un joueur double-clique sur le pseudo d'un joueur dans la tablist.

OnPlayerClickTextDraw

Cette callback est appelée quand un joueur clique sur un textdraw ou le quitte avec la touche ECHAP.

OnPlayerConnect

This callback is called when a player connects to the server.

OnPlayerDeath

Cette callback est appelée quand le joueur est mort. Il peut s'agir aussi bien d'une mort par kill qu'une mort par suicide.

OnPlayerEditObject

Cette callback est appelée quand un joueur a fini d'éditer un objet (EditObject/EditPlayerObject).

OnPlayerEnterVehicle

Cette callback est appelée quand un joueur commence à entrer dans un véhicule, c'est-à-dire que le joueur n'est pas encore dans le véhicule quand la callback est appelée.

OnPlayerGiveDamage

Cette callback est appelée quand un joueur inflige des dégâts à un autre joueur.

OnPlayerKeyStateChange

Cette callback est appelée lorsqu'un joueur appuie / lâche une touche de son clavier (uniquement les touches supportées par SA:MP)

OnPlayerLeaveCheckpoint

Cette callback est appelée quand un joueur quitte un checkpoint configuré pour lui avec SetPlayerCheckpoint.

OnPlayerObjectMoved

Cette callback est appelée quand l'objet d'un joueur a été déplacé après un MovePlayerObject (quand l'objet s'arrête de bouger).

OnPlayerPickupStreamIn

Ce rappel est appelé lorsque qu'un objet joueur-pickup entre dans la portée visuelle du joueur.

OnPlayerPickupStreamOut

Ce rappel est appelé lorsque qu'un objet joueur-pickup quitte la portée visuelle du joueur.

OnPlayerRequestDownload

Cette callback est appelée quand un joueur sollicite le téléchargement des custom models.

OnPlayerRequestSpawn

Appelée lorsqu'un joueur clique sur le bouton "spawn" lors de la sélection de classe.

OnPlayerSelectedMenuRow

Cette callback est appelée lorsqu'un joueur sélectionne un article depuis un menu (ShowMenuForPlayer).

OnPlayerSelectObject

Cette callback est appelée quand un joueur sélectionne un objet après que SelectObject a été utilisé.

OnPlayerSpawn

Cette callback est appelée lorsqu'un joueur spawn (apparaît).

OnPlayerStateChange

Cette callback est appelée lorsqu'un joueur change d'état (à pied, dans un véhicule, en mode spectateur, etc...).

OnPlayerStreamIn

Cette fonction est appelée quand un joueur est chargé (devient visible) pour un joueur.

OnPlayerStreamOut

Cette fonction est appelée quand un joueur est déchargé (n'est plus visible) pour un joueur.

OnPlayerText

Appelée lorsqu'un joueur envoie un message dans le chat.

OnPlayerUpdate

Cette callback est appelée à chaque fois qu'un client/joueur modifie son status auprès du serveur.

OnScriptLoadPlayer

This callback is called for each connected player when a script is loaded.

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).

SetSpawnInfo

This function can be used to change the spawn information of a specific player.

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).