Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*890182419023821093891023812093801 - Sistema De Estado -
- ===============# Por JuanMa Reedk Respetar Creditos en FS O GM! #==============
- Exclusivo PS */
- //´=============== # Defines # ============= //
- #define FILTERSCRIPT
- #define COLOR_ROJO 0xFF0000
- #define COLOR_VERDE 0x00FF33
- #define COLOR_VIOLETA0 0x9900CC
- //======Include's
- #include <a_samp>
- #include <zcmd>
- #include <sscanf2>
- //== newss =====
- new bool:EstadoON[MAX_PLAYERS];
- new Text3D:estado[MAX_PLAYERS];
- //$$$$$$$$$$$$$$$$$$$$$$$$$$$$
- #if defined FILTERSCRIPT
- #endif
- #pragma tabsize 0
- // ====FS====
- public OnFilterScriptInit()
- {
- print("\n-------------------------------------------");
- print(" FS Estado Cargado con exito! ");
- print("=============================================");
- print(" By Reedk ");
- print(" ||Prohibido robo de creditos|| ");
- print("---------------------------------------------\n");
- return 1;
- }
- // CMD del estado
- CMD:estado(playerid,params[])
- {
- new fsestado[200],str[256],mensaje[256]; // new
- if(EstadoON[playerid] == true) return SendClientMessage(playerid, 0,"{B300FF} ¡ Tienes un Estado Activo todavia ! Usa /sacarestado .");
- if(sscanf(params, "s[128]", fsestado) )return SendClientMessage(playerid, COLOR_VERDE,"{00FF09}Uso: /estado [ESTADO] ");
- format(str, sizeof(str), "Estado: {FFFFFF}%s",fsestado);
- format(mensaje, sizeof(mensaje), "{00FF09} Te pusiste de estado: {FFFFFF}%s",fsestado);
- estado[playerid] = Create3DTextLabel(str,COLOR_VERDE,30.0,40.0,5.0,40.0,1);
- Attach3DTextLabelToPlayer(estado[playerid], playerid, 0.0, 0.0, 0.40);
- SendClientMessage(playerid, COLOR_VERDE, mensaje);
- SendClientMessage(playerid, COLOR_ROJO, "Para borrar tu estado usa {FFFFFF}/sacarestado");
- EstadoON[playerid] = true;
- return 1;
- }
- //------------------------------------------------------------------------------------------------------------------------------
- CMD:sacarestado(playerid,params[])
- {
- if(EstadoON[playerid] == true){
- SendClientMessage(playerid,COLOR_VIOLETA0,"Has Borrado tu estado actual!");
- Delete3DTextLabel(estado[playerid]);
- EstadoON[playerid] = false; return 1; }
- if(EstadoON[playerid] == false) return SendClientMessage(playerid,COLOR_ROJO,"No tienes ningun estado");
- return 1;
- }
- //¬¬¬¬¬¬¬¬¬¬¬ Sistema de estado por JuanMa Reedk Esclusivo PS ¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬¬//
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement