View difference between Paste ID: WPV3j2Qg and 8yrHdGsC
SHOW: | | - or go back to the newest paste.
1
/*
2
					********************************
3
      						3D Text Label
4
					********************************
5
6
7
/wwww.total-samp.com.br Siga-nos\
8
9
Descrição:
10
	» Criar 3D Textos In-game
11
	
12
Versão:
13
	» 1.0
14
15
Developer:
16
	» [KoS]Shickcard
17
	
18
Special Thanks:
19
20
	"Small" Larceny -qq
21
	SA-MP Team	- For All.
22
	
23
*/
24
25
#include <a_samp>
26
27
#define DialogInsert3D       	1
28
29
#define Distancia               40.0
30
#define PickupCor               0xF09C00AA
31
32
new
33
	Text3D: Texto,
34
	Float: P[3]
35
;
36
37
public OnFilterScriptInit()
38
{
39
	print("3D Text In-game");
40
	return 1;
41
}
42
43
main() return 1;
44
45
46
47
public OnPlayerCommandText(playerid, cmdtext[])
48
{
49
	if(strcmp("/criar3d", cmdtext, true) == 0)
50
	{
51
	    ShowPlayerDialog(playerid, DialogInsert3D, DIALOG_STYLE_INPUT, "{00FF00}.:: Texto » 3D Text Label ::.","Insira o texto da 3D Text Label:","Confirmar","Cancelar");
52
		return 1;
53
	}
54
	return 0;
55
}
56
57
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
58
{
59
	if(dialogid == DialogInsert3D)
60
	{
61
	    if(response)
62
	    {
63
			GetPlayerPos(playerid, P[0], P[1], P[2]);
64
   			Texto = Create3DTextLabel(inputtext, PickupCor, P[0], P[1], P[2], Distancia, 0);
65
			Update3DTextLabelText(Texto, PickupCor, inputtext);
66
	    }
67
	}
68
	return 1;
69
}