Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /***********************************
- ** **
- ** [M] INGAME 3D TEXT MAKER ! **
- ** Verzija: 1.0 **
- ************************************/
- #include <a_samp>
- #define MLabel 0xFFFF00AA
- #define SPD ShowPlayerDialog
- public OnFilterScriptInit()
- {
- print("** [M] INGAME 3D TEXT MAKER v1.0 **");
- return true;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(!strcmp(cmdtext, "/addlabel", true, 9))
- {
- new Float:xpos, Float:ypos, Float:zpos;
- if(!cmdtext[9]) return SPD(playerid, 2, DIALOG_STYLE_MSGBOX, "{00BFFF}[M] INGAME LABEL MAKER", "{FFFAFA}\nKORISTI: /addlabel [tekst]", "Zatvori", "");
- GetPlayerPos(playerid,xpos,ypos,zpos);
- Create3DTextLabel(cmdtext[9],MLabel,xpos,ypos,zpos,20.0,0,0);
- printf("--------------------------");
- printf("// NOVI LABEL DODAN ! //");
- printf("// OPIS LABELA - %s", cmdtext[9]);
- printf("--------------------------"); // NAPRAVIO SAM OVO DA VIDITE KOJE STE LABELE NAPRAVILI TIJEKOM OVE IGRE U SLJEDEOJ VERZIJI SE SPREMAJU U LOG TE LOADAJU PRI PALJENJU SERVERA !
- return true;
- }
- if(!strcmp(cmdtext, "/addvehlabel", true, 12))
- {
- new Float:vehx, Float:vehy, Float:vehz;
- new MLabelVeh;
- new Text3D:MVehLabel;
- MLabelVeh = GetPlayerVehicleID(playerid);
- if(!cmdtext[12]) return SPD(playerid, 2, DIALOG_STYLE_MSGBOX, "{00BFFF}[M] INGAME LABEL MAKER", "{FFFAFA}\nKORISTI: /addvehlabel [tekst]", "Close", "");
- GetVehiclePos(MLabelVeh, vehx,vehy,vehz);
- MVehLabel = Create3DTextLabel(cmdtext[12],MLabel,vehx,vehy,vehz,20.0,0,0);
- printf("----------------------------------------");
- printf("// NOVI VEHICLE LABEL DODAN ! //");
- printf("// OPIS LABELA - %s //", cmdtext[12]);
- printf("----------------------------------------");
- Attach3DTextLabelToVehicle(MVehLabel, MLabelVeh, 0, 0, 1.0);
- return 1;
- }
- return 0;
- }
- // Ne brišite creditse ! //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement