Ana içeriğe geç

"player" ile etiketlenmiş 441 doküman etiketlendi

Tüm Etiketleri Görüntüle

AddPlayerClassEx

Bu işlev, bir takım parametresi eklenmesiyle birlikte AddPlayerClass işleviyle tamamen aynıdır.

AllowPlayerTeleport

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

Ban

Sunucuda olan birini yasaklama.

BanEx

Oyuncuyu özel bir nedenle yasaklama.

BeginObjectEditing

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

Body parts

The following entries are body part IDs which can be used by OnPlayerGiveDamage, OnPlayerTakeDamage and OnPlayerGiveDamageActor.

Bone IDs

This page contains all of the bone IDs used by SetPlayerAttachedObject.

Color Fix

A basic script to add more player colours.

Crime List

Crime List used by PlayCrimeReportForPlayer function.

DisableNameTagLOS

Disables the nametag Line-Of-Sight checking so that players can see nametags through objects.

DisablePlayerRaceCheckpoint

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

EditObject

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

EditPlayerObject

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

Fighting Styles

All fighting styles used by SetPlayerFightingStyle and GetPlayerFightingStyle are listed below.

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 'max_players'.

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.

GetPlayerWeaponData

Get the weapon and ammo in a specific player's weapon slot (e.g. the weapon in the 'SMG' slot).

GetSpawnInfo

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

gpci

Fetch the CI (computer/client identification) of a user, this is linked to their SAMP/GTA on their computer.

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.

Keys

Here you can find information about key input constants used by GetPlayerKeys and OnPlayerKeyStateChange.

Kick

Oyuncuyu sunucudan atma.

Marker Modes

Here you can find all of the marker modes used by ShowPlayerMarkers.

OnEnterExitModShop

Bu geri çağırma, bir oyuncu modifiye garajlarından birine giriş veya çıkış yaptığında tetiklenir.

OnIncomingConnection

Bu geri çağırma bir IP adresi sunucuya erişim sağlamaya çalıştığında tetiklenir.

OnPickupStreamIn

Bu geri çağırma, bir pickup bir oyuncunun görsel alanına girdiğinde çağrılır.

OnPickupStreamOut

Bu geri çağırma, bir pickup bir oyuncunun görsel alanından çıktığında çağrılır.

OnPlayerClickGangZone

Bu geri çağırma, bir oyuncu duraklatma menüsü haritasında (sağ tıklayarak) bir gangzone'a tıkladığında çağrılır.

OnPlayerClickMap

Bu geri çağırma oyuncu haritada bir yer işaretlediğinde çağrılır.

OnPlayerClickPlayer

Bu geri çağırma oyuncu skor tablosunda bir oyuncuya iki kez tıkladığında çağrılır.

OnPlayerClickPlayerGangZone

Bu geri çağırma, bir oyuncu duraklatma menüsü haritasında (sağ tıklayarak) bir player gangzone'a tıkladığında çağrılır.

OnPlayerClickTextDraw

Bu geri çağırma, bir oyuncu bir textdrawa tıkladığında veya Escape tuşu ile seçim modunu iptal ettiğinde çağrılır.

OnPlayerCommandText

Bu geri çağırma oyuncu chat ekranında herhangi bir komut kullandığında çağrılır.

OnPlayerConnect

Bu geri çağırma oyuncu sunucuya bağlandığında çağrılır.

OnPlayerDeath

Bu geri çağırma, bir oyuncu öldüğünde, intihar ettiğinde ya da başka bir oyuncu tarafından öldürüldüğünde çağrılır.

OnPlayerEditObject

Bu geri çağırma bir oyuncu obje düzenlemeyi bitirdiğinde çağırılır (EditObject/EditPlayerObject).

OnPlayerEnterCheckpoint

Bu geri çağırma, bir oyuncu kendisi için oluşturulan checkpointe giriş yaptığında çağırılır.

OnPlayerEnterVehicle

Bu geri çağırma, bir oyuncu bir araca binmeye başladığında çağırılır.

OnPlayerExitVehicle

Bu geri çağırma, araçta bulunan bir oyuncu bir araçtan inmeye başladığında çağırılır.

OnPlayerGiveDamage

Bu geri çağırma, bir oyuncu başka bir oyuncuya hasar verdiğinde çağırılır.

OnPlayerKeyStateChange

Bu fonksiyon, desteklenen herhangi bir tuşun durumu değiştirildiğinde (basıldığında / bırakıldığında) çağrılır.

OnPlayerLeaveCheckpoint

Bu fonksiyon, bir oyuncu SetPlayerCheckpoint tarafından kendisi için ayarlanan kontrol noktasından ayrıldığında çağrılır.

OnPlayerObjectMoved

Fonksiyon, bir oyuncu objesi MovePlayerObject'den sonra hareket ettirildiğinde (hareket etmeyi durdurduğunda) çağrılır.

OnPlayerPickUpPickup

Fonksiyon, oyuncu CreatePickup ile oluşturulan bir işaretin (pickup) üstüne geldiğinde çağrılır.

OnPlayerPickUpPlayerPickup

Bu geri çağırma, CreatePlayerPickup ile oluşturulan bir player-pickup'ı bir oyuncu aldığında çağrılır.

OnPlayerPickupStreamIn

Bu geri çağırma, bir player-pickup oyuncunun görsel menziline girdiğinde çağrılır.

OnPlayerPickupStreamOut

Bu geri çağırma, bir player-pickup oyuncunun görsel menzilinden çıktığında çağrılır.

OnPlayerRequestClass

Fonksiyon, bir oyuncu sınıf seçiminde sınıfını değiştirdiğinde (ve sınıf seçimi ilk göründüğünde) çağrılır.

OnPlayerRequestSpawn

Fonksiyon, Bir oyuncu SHIFT'e basarak veya 'Spawn' düğmesine tıklayarak sınıf seçimi yoluyla doğmaya çalıştığında çağrılır.

OnPlayerSelectObject

Bu fonksiyon, oyuncu SelectObject kullanıldıktan sonra bir obje seçtiğinde çağrılır.

OnPlayerStreamIn

Bu fonksiyon, bir oyuncu başka bir oyuncunun streamer bölgesinde yayınlandığında çağrılır.

OnPlayerStreamOut

Bu fonksiyon, bir oyuncu başka bir oyuncunun istemcisinden stream alanından çıktığında çağrılır.

OnPlayerText

Fonksiyon, oyuncu sohbet mesajı gönderdiğinde çağrılır.

OnPlayerUpdate

Bu fonksiyon, bir istemci veya oyuncu sunucuyu durumlarıyla her güncellediğinde çağrılır.

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.

SelectObject

Display the cursor and allow the player to select an object.

SendClientMessage

This function sends a message to a specific player with a chosen color in the chat.

SendClientMessagef

This function sends a formatted message to a specific player with a chosen color in the chat.

SendDeathMessage

Adds a death to the 'killfeed' on the right-hand side of the screen for all players.

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.

SetTeamCount

This function is used to change the amount of teams used in the gamemode.

ShowNameTags

Toggle the drawing of nametags, health bars and armor bars above players.

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.

Spectate Modes

Spectate Modes used by PlayerSpectatePlayer and PlayerSpectateVehicle 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).