CancelSelectTextDraw FR
From SA-MP Wiki
Page d'Accueil | Les Fonctions | Les Callbacks | Les bases du Scripting | Plugins de Serveur | Tutoriaux
Ne prenez pas en compte les FR dans les noms
CancelSelectTextDraw
Description:
Cancel textdraw selection with the mouse
(playerid)
playerid | The ID of the player that should be the textdraw selection disabled |
Retourne | Cette fonction ne retourne pas de valeur spécifique. |
Exemple d'utilisation:
public OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp(cmdtext, "/cancelselect", true)) { CancelSelectTextDraw(playerid); SendClientMessage(playerid, 0xFFFFFFFF, "SERVER: TextDraw selection disabled!"); return 1; } return 0; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- SelectTextDraw: Enables the mouse, so the player can select a textdraw
- TextDrawSetSelectable: Sets whether a textdraw is selectable through SelectTextDraw
Related Callbacks
The following callbacks might be useful, as they're related to this function in one way or another.
- OnPlayerClickTextDraw: Called when a player clicks on a textdraw.