Advertisement
Reedk

[FS] Estado || By Reedk || Para PS ||

Mar 15th, 2016
1,332
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.46 KB | None | 0 0
  1. /*890182419023821093891023812093801 - Sistema De Estado -
  2. ===============# Por JuanMa Reedk Respetar Creditos en FS O GM! #==============
  3. Exclusivo PS */
  4. //´=============== # Defines # ============= //
  5. #define FILTERSCRIPT
  6. #define COLOR_ROJO 0xFF0000
  7. #define COLOR_VERDE 0x00FF33
  8. #define COLOR_VIOLETA0 0x9900CC
  9. //======Include's
  10. #include <a_samp>
  11. #include <zcmd>
  12. #include <sscanf2>
  13. //== newss =====
  14. new bool:EstadoON[MAX_PLAYERS];
  15. new Text3D:estado[MAX_PLAYERS];
  16. //$$$$$$$$$$$$$$$$$$$$$$$$$$$$
  17. #if defined FILTERSCRIPT
  18. #endif
  19. #pragma tabsize 0
  20.  
  21.  
  22. // ====FS====
  23. public OnFilterScriptInit()
  24. {
  25. print("\n-------------------------------------------");
  26. print(" FS Estado Cargado con exito! ");
  27. print("=============================================");
  28. print(" By Reedk ");
  29. print(" ||Prohibido robo de creditos|| ");
  30. print("---------------------------------------------\n");
  31. return 1;
  32. }
  33.  
  34. // CMD del estado
  35. CMD:estado(playerid,params[])
  36. {
  37. new fsestado[200],str[256],mensaje[256]; // new
  38. if(EstadoON[playerid] == true) return SendClientMessage(playerid, 0,"{B300FF} ¡ Tienes un Estado Activo todavia ! Usa /sacarestado .");
  39. if(sscanf(params, "s[128]", fsestado) )return SendClientMessage(playerid, COLOR_VERDE,"{00FF09}Uso: /estado [ESTADO] ");
  40. format(str, sizeof(str), "Estado: {FFFFFF}%s",fsestado);
  41. format(mensaje, sizeof(mensaje), "{00FF09} Te pusiste de estado: {FFFFFF}%s",fsestado);
  42. estado[playerid] = Create3DTextLabel(str,COLOR_VERDE,30.0,40.0,5.0,40.0,1);
  43. Attach3DTextLabelToPlayer(estado[playerid], playerid, 0.0, 0.0, 0.40);
  44. SendClientMessage(playerid, COLOR_VERDE, mensaje);
  45. SendClientMessage(playerid, COLOR_ROJO, "Para borrar tu estado usa {FFFFFF}/sacarestado");
  46. EstadoON[playerid] = true;
  47. return 1;
  48. }
  49. //------------------------------------------------------------------------------------------------------------------------------
  50. CMD:sacarestado(playerid,params[])
  51. {
  52. if(EstadoON[playerid] == true){
  53. SendClientMessage(playerid,COLOR_VIOLETA0,"Has Borrado tu estado actual!");
  54. Delete3DTextLabel(estado[playerid]);
  55. EstadoON[playerid] = false; return 1; }
  56. if(EstadoON[playerid] == false) return SendClientMessage(playerid,COLOR_ROJO,"No tienes ningun estado");
  57. return 1;
  58. }
  59.  
  60. //¬¬¬¬¬¬¬¬¬¬¬ Sistema de estado por JuanMa Reedk Esclusivo PS ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement