Advertisement
Guest User

Untitled

a guest
Apr 3rd, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.93 KB | None | 0 0
  1. /***********************************
  2. **                                **
  3. **   [M] INGAME 3D TEXT MAKER !   **
  4. **         Verzija: 1.0           **
  5. ************************************/
  6.  
  7. #include <a_samp>
  8.  
  9. #define MLabel 0xFFFF00AA
  10. #define SPD ShowPlayerDialog
  11.  
  12. public OnFilterScriptInit()
  13. {
  14.     print("** [M] INGAME 3D TEXT MAKER v1.0 **");
  15.     return true;
  16. }
  17.  
  18. public OnPlayerCommandText(playerid, cmdtext[])
  19. {
  20.  if(!strcmp(cmdtext, "/addlabel", true, 9))
  21.     {
  22.         new Float:xpos, Float:ypos, Float:zpos;
  23.         if(!cmdtext[9]) return SPD(playerid, 2, DIALOG_STYLE_MSGBOX, "{00BFFF}[M] INGAME LABEL MAKER", "{FFFAFA}\nKORISTI: /addlabel [tekst]", "Zatvori", "");
  24.         GetPlayerPos(playerid,xpos,ypos,zpos);
  25.         Create3DTextLabel(cmdtext[9],MLabel,xpos,ypos,zpos,20.0,0,0);
  26.         printf("--------------------------");
  27.         printf("// NOVI LABEL DODAN ! //");
  28.         printf("// OPIS LABELA - %s", cmdtext[9]);
  29.         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 !
  30.         return true;
  31.     }
  32.     if(!strcmp(cmdtext, "/addvehlabel", true, 12))
  33.     {
  34.         new Float:vehx, Float:vehy, Float:vehz;
  35.         new MLabelVeh;
  36.         new Text3D:MVehLabel;
  37.         MLabelVeh = GetPlayerVehicleID(playerid);
  38.         if(!cmdtext[12]) return SPD(playerid, 2, DIALOG_STYLE_MSGBOX, "{00BFFF}[M] INGAME LABEL MAKER", "{FFFAFA}\nKORISTI: /addvehlabel [tekst]", "Close", "");
  39.         GetVehiclePos(MLabelVeh, vehx,vehy,vehz);
  40.         MVehLabel = Create3DTextLabel(cmdtext[12],MLabel,vehx,vehy,vehz,20.0,0,0);
  41.         printf("----------------------------------------");
  42.         printf("// NOVI VEHICLE LABEL DODAN ! //");
  43.         printf("// OPIS LABELA - %s //", cmdtext[12]);
  44.         printf("----------------------------------------");
  45.         Attach3DTextLabelToVehicle(MVehLabel, MLabelVeh, 0, 0, 1.0);
  46.         return 1;
  47.     }
  48.     return 0;
  49. }
  50. // Ne brišite creditse ! //
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement