How to make this type of textdraw - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: How to make this type of textdraw (
/showthread.php?tid=517655)
How to make this type of textdraw -
[Cali]ChrOnic_T - 06.06.2014
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.
Respuesta: How to make this type of textdraw -
SickAttack - 06.06.2014
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;
}
Re: How to make this type of textdraw -
rockhopper - 06.06.2014
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
Re: How to make this type of textdraw -
Laure - 06.06.2014
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.
Re: How to make this type of textdraw -
rockhopper - 06.06.2014
HE means If the player is displayed Textdraw And player presses 1 Then He get that Gun
Re: How to make this type of textdraw -
Parallex - 06.06.2014
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.
Respuesta: Re: How to make this type of textdraw -
SickAttack - 06.06.2014
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.