How to make this type of textdraw
#1

How do servers make this type of textdraw? you type 1-10 and you buy the weapon,etc

picture:





I really wanna add something like this in my server.
Reply
#2

Check if the player is in the checkpoint, pickup or w/e you use, and onplayertext check if the player types a number between 1 and 10.

Example:
pawn Код:
public OnPlayerText(playerid, text[])
{
    if(BuyingWeapons[playerid] == 1)
    {
        if(strcmp(text, "1", true) == 0 || strcmp(text, "9mm", true) == 0)
        {
            GivePlayerWeapon(playerid, 22, 100);
            SendClientMessage(playerid, 0xFFFFFFFF, "You have purchased a 9mm!");
            return 0;
        }
    }
    return 0;
}
Reply
#3

Off Topic :- Sick Wanna join me making a Server that has never been made in samp history Need Co- Scripters

Topic :- Sick Attach is right
Reply
#4

If you mean transparency then thats the colo opacity you should add textfraw box color for example

TextDrawBoxColor(exampletxtdraw, 0x000000AA); and for checkpoint you can add function u can check if a player is in range of the checkpoint the show him the textdraw.
Reply
#5

HE means If the player is displayed Textdraw And player presses 1 Then He get that Gun
Reply
#6

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
HE means If the player is displayed Textdraw And player presses 1 Then He get that Gun
Not press, he meant, type the number from the list.
Reply
#7

Quote:
Originally Posted by rockhopper
Посмотреть сообщение
HE means If the player is displayed Textdraw And player presses 1 Then He get that Gun
SA-MP isn't able to detect most of the keys. In this case only key number 2 is detectable.

@rockhopper; I sent you a PM.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)