Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de este FS sin Mi Permiso.
- */
- /////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////
- /*
- ----------------------------------------------------------
- | [FS] --< [FS] Simple Pasamontañas >-- |
- | |
- | Creado Por ØTACØN - 2012 |
- ----------------------------------------------------------
- ----------------------------------------------------------
- | FS CREADO PARA LOS USUARIOS NOVATOS EN PAWNO |
- ----------------------------------------------------------
- */
- /////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////
- #include <a_samp>
- #define Morado 0xC2A2DAFF
- #define Gris 0xb0b0b0FF
- #define Blanco 0xFFFFFFFF
- #define RojoOscuro 0x5b0000FF
- new Pasamont[MAX_PLAYERS];
- public OnFilterScriptInit()
- {
- print(" , ,");
- print(" /( )`");
- print(" | |___ / ||");
- print(" /- _ `-/ '");
- print(" (/|/ | | /|");
- print(" / / | ` |");
- print(" O O ) / |");
- print(" `-^--'`< '");
- print(" (_.) _ ) /");
- print(" `.___/` /");
- print(" `-----' /");
- print(" <----. __ / __ |");
- print(" <----|====O)))==) |) /====");
- print(" <----' `--' `.__,' |");
- print(" | |");
- print(" | /");
- print(" ______( (_ / |______");
- print(" ,' ,-----' | |");
- print(" `--{__________) ");
- print("\n|---------------------------------------|");
- print("| Filescript por <ØTACØN> |");
- print("| Simple Pasamontañas -- Cargado |");
- print("|-----------------------------------------|\n");
- print("\n|-----------------------------------------------------|");
- print("| Prohibido TOTALMENTE el Robo de Créditos o la |");
- print("| Publicación de este FS sin Mi Permiso |");
- print("|-------------------------------------------------------|\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print(" , ,");
- print(" /( )`");
- print(" | |___ / ||");
- print(" /- _ `-/ '");
- print(" (/|/ | | /|");
- print(" / / | ` |");
- print(" O O ) / |");
- print(" `-^--'`< '");
- print(" (_.) _ ) /");
- print(" `.___/` /");
- print(" `-----' /");
- print(" <----. __ / __ |");
- print(" <----|====O)))==) |) /====");
- print(" <----' `--' `.__,' |");
- print(" | |");
- print(" | /");
- print(" ______( (_ / |______");
- print(" ,' ,-----' | |");
- print(" `--{__________) ");
- print("\n|---------------------------------------|");
- print("| Filescript por <ØTACØN> |");
- print("| Simple Pasamontañas -- Cerrado |");
- print("|-----------------------------------------|\n");
- print("\n|-----------------------------------------------------|");
- print("| Prohibido TOTALMENTE el Robo de Créditos o la |");
- print("| Publicación de este FS sin Mi Permiso |");
- print("|-------------------------------------------------------|\n");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- new str[128];
- //===================== [FS] --< [FS] Simple Pasamontañas >-- =====================
- if(!strcmp(cmdtext, "/VerPasamontañas", true))
- {
- if(!IsPlayerAdmin(playerid))
- {
- SendClientMessage(playerid, Gris, " [ ! ] Usted No Esta Autolizado a Utilizar Este Comando!.");
- return 1;
- }
- if(IsPlayerConnected(playerid))
- {
- SendClientMessage(playerid, RojoOscuro, "|____ Usuarios Con Pasamontañas ____|");
- for(new a; a < GetMaxPlayers(); a++)
- {
- if(IsPlayerConnected(a))
- {
- if(Pasamont[a] == 1)
- {
- new Name[MAX_PLAYER_NAME]; GetPlayerName(a,Name, sizeof Name);
- format(str, sizeof(str), " * %s - [ID:%i] Tiene Pasamontañas Colocado.", Name, a);
- SendClientMessage(playerid, Blanco, str);
- return 1;
- }
- else if(Pasamont[a] == 0)
- {
- format(str, sizeof(str), " * 'No Hay Nadie Con Pasamontañas!.");
- SendClientMessage(playerid, Blanco, str);
- return 1;
- }
- }
- }
- }
- return 1;
- }
- //===================================================================================
- if(!strcmp(cmdtext, "/Pasamontañas", true))
- {
- if(IsPlayerConnected(playerid))
- {
- if(Pasamont[playerid] == 0)
- {
- Pasamont[playerid] = 1;
- for(new i; i < GetMaxPlayers(); i++) ShowPlayerNameTagForPlayer(i, playerid, false);
- SendClientMessage(playerid, Gris, " [ ! ] Te Colocaste El Pasamontañas!.");
- new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name, sizeof Name);
- format(str, sizeof(str), "* %s Se Coloca Un Pasamontañas En El Rostro.", Name);
- ProxDetector(30.0, playerid, str, Morado,Morado,Morado,Morado,Morado);
- return 1;
- }
- else if(Pasamont[playerid] == 1)
- {
- Pasamont[playerid] = 0;
- for(new i; i < GetMaxPlayers(); i++) ShowPlayerNameTagForPlayer(i, playerid, true);
- SendClientMessage(playerid, Gris, " [ ! ] Te Quitaste El Pasamontañas!.");
- new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid,Name, sizeof Name);
- format(str, sizeof(str), "* %s Se Quita El Pasamontañas Del Rostro.", Name);
- ProxDetector(30.0, playerid, str, Morado,Morado,Morado,Morado,Morado);
- return 1;
- }
- }
- return 1;
- }
- //===================================================================================
- return 0;
- }
- forward ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5);
- public ProxDetector(Float:radi, playerid, string[],col1,col2,col3,col4,col5)
- {
- if(IsPlayerConnected(playerid))
- {
- new Float:posx, Float:posy, Float:posz;
- new Float:oldposx, Float:oldposy, Float:oldposz;
- new Float:tempposx, Float:tempposy, Float:tempposz;
- GetPlayerPos(playerid, oldposx, oldposy, oldposz);
- for(new i; i < GetMaxPlayers(); i++)
- {
- if(IsPlayerConnected(i) && (GetPlayerVirtualWorld(playerid) == GetPlayerVirtualWorld(i)))
- {
- GetPlayerPos(i, posx, posy, posz);
- tempposx = (oldposx -posx);
- tempposy = (oldposy -posy);
- tempposz = (oldposz -posz);
- if (((tempposx < radi/16) && (tempposx > -radi/16)) && ((tempposy < radi/16) && (tempposy > -radi/16)) && ((tempposz < radi/16) && (tempposz > -radi/16)))
- {
- SendClientMessage(i, col1, string);
- }
- else if (((tempposx < radi/8) && (tempposx > -radi/8)) && ((tempposy < radi/8) && (tempposy > -radi/8)) && ((tempposz < radi/8) && (tempposz > -radi/8)))
- {
- SendClientMessage(i, col2, string);
- }
- else if (((tempposx < radi/4) && (tempposx > -radi/4)) && ((tempposy < radi/4) && (tempposy > -radi/4)) && ((tempposz < radi/4) && (tempposz > -radi/4)))
- {
- SendClientMessage(i, col3, string);
- }
- else if (((tempposx < radi/2) && (tempposx > -radi/2)) && ((tempposy < radi/2) && (tempposy > -radi/2)) && ((tempposz < radi/2) && (tempposz > -radi/2)))
- {
- SendClientMessage(i, col4, string);
- }
- else if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
- {
- SendClientMessage(i, col5, string);
- }
- }
- }
- }
- return 1;
- }
- /////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////
- /*
- ----------------------------------------------------------
- | [FS] --< [FS] Simple Pasamontañas >-- |
- | |
- | Creado Por ØTACØN - 2012 |
- ----------------------------------------------------------
- ----------------------------------------------------------
- | FS CREADO PARA LOS USUARIOS NOVATOS EN PAWNO |
- ----------------------------------------------------------
- */
- /////////////////////////////////////////////////////////////////////////////////////
- /////////////////////////////////////////////////////////////////////////////////////
- /*
- Prohibido TOTALMENTE el Robo de Créditos o la
- Publicación de este FS sin Mi Permiso.
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement