Textdraw. Halp again lol.
#1

Actually...dont go on the topic...its just a doubt... in some server the textdraw can be opened through commands and below its written like press LMB to close this box...and as soon as the player enters a vehicle..it says press caps lock to close this box...how do i hide textdraws on pressing lmb and capslock...i think it isnt inbuilt in SA:MP but most of server uses same keys. is it some include?
Reply
#2

Use OnPlayerKeyStateChange.
List of keys: https://sampwiki.blast.hk/wiki/Keys

Example:
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if((newkeys & KEY_CROUCH) && !(oldkeys & KEY_CROUCH) || (newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE)) TextDrawHideForPlayer(playerid, TextDrawName);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)