Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ********************************
- 3D Text Label
- ********************************
- Descrição:
- » Criar 3D Textos In-game
- Versão:
- » 1.0
- Developer:
- » [KoS]Shickcard
- Special Thanks:
- "Small" Larceny -qq
- SA-MP Team - For All.
- */
- #include <a_samp>
- #define DialogInsert3D 1
- #define Distancia 40.0
- #define PickupCor 0xF09C00AA
- new
- Text3D: Texto,
- Float: P[3]
- ;
- public OnFilterScriptInit()
- {
- print("3D Text In-game");
- return 1;
- }
- main() return 1;
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp("/criar3d", cmdtext, true) == 0)
- {
- ShowPlayerDialog(playerid, DialogInsert3D, DIALOG_STYLE_INPUT, "{00FF00}.:: Texto » 3D Text Label ::.","Insira o texto da 3D Text Label:","Confirmar","Cancelar");
- return 1;
- }
- return 0;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == DialogInsert3D)
- {
- if(response)
- {
- GetPlayerPos(playerid, P[0], P[1], P[2]);
- Texto = Create3DTextLabel(inputtext, PickupCor, P[0], P[1], P[2], Distancia, 0);
- Update3DTextLabelText(Texto, PickupCor, inputtext);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment