#1

Hello i need this includes mselction.inc and fader2.inc
Reply
#2

I never heard these files plus you're wrong here. This section is for scripting helps. Go and ****** these files.
Reply
#3

There is not On ******
Reply
#4

****** is a nice website to ****** things that should be ******d! Let me ****** it for you!
mselection: http://letme******that.com/?q=Gta+samp+mselection
fader2: http://letme******that.com/?q=Gta+samp+fader2
Reply
#5

can Help On this please?
PHP код:
error 017undefined symbol "Get3DZone"
error 017undefined symbol "Get2DPosZone"
error 017undefined symbol "FlashPlayerScreen" 
Reply
#6

Quote:
Originally Posted by Bojaa
Посмотреть сообщение
can Help On this please?
PHP код:
error 017undefined symbol "Get3DZone"
error 017undefined symbol "Get2DPosZone"
error 017undefined symbol "FlashPlayerScreen" 
You need this https://github.com/AndreT/samp-vorte...de/a_zones.inc

also this

PHP код:
/*
                                    Seifader - SA-MP screen fader by Seif
        *-----------------------------------------------*
        | This include allows you to fade players'        |
        | screens from a color or to a color. Also,     |
        | it calls a callback when the fading finishes    |
        | so you can do whatever when the fading ends.    |
        | 'OnPlayerScreenFade & OnPlayerScreenColorFade'|
        *-----------------------------------------------*
*/
/*x---------------------------------Important-------------------------------------x*/
//**INCLUDES**//
#include <a_samp>
//**PRAGMAS**//
//**MISC**//
#define function%0(%1) forward%0(%1); public%0(%1)
/*
#if defined MAX_PLAYERS
    #undef MAX_PLAYERS
    #define MAX_PLAYERS     100     // CHANGE IT TO YOUR PLAYER SLOTS IN YOUR SERVER
#endif*/
/*x---------------------------------Defining-------------------------------------x*/
//**COLORS*//
    //Some colors I made
/*#define GREEN             0x21DD00FF
#define RED             0xE60000FF
#define ADMIN_RED         0xFB0000FF
#define YELLOW             0xFFFF00FF
#define ORANGE             0xF97804FF
#define LIGHTRED         0xFF8080FF
#define LIGHTBLUE         0x00C2ECFF
#define PURPLE             0xB360FDFF
#define BLUE             0x1229FAFF
#define LIGHTGREEN         0x38FF06FF
#define DARKPINK         0xE100E1FF
#define DARKGREEN         0x008040FF
#define ANNOUNCEMENT     0x6AF7E1FF
#define GREY             0xCECECEFF
#define PINK             0xD52DFFFF
#define DARKGREY        0x626262FF
#define AQUAGREEN       0x03D687FF
#define WHITE             0xFFFFFFFF*/
//**MISC**//
#define MAX_FADES       5      // max fades that a player can have at the same time.
//**VARIABLES**//
new colorfade[MAX_PLAYERS][MAX_FADES];
new 
FadeAvailability[MAX_PLAYERS][MAX_FADES];
new 
Text:PlayerFadeText[MAX_PLAYERS][MAX_FADES];
new 
bool:FlashFade[MAX_PLAYERS][MAX_FADES];
new 
FlashFadeTimes[MAX_PLAYERS][MAX_FADES];
// **FORWARDS** //
forward OnPlayerScreenFade(playeridcolorspeed);
forward OnPlayerScreenColorFade(playeridcolorspeed);
forward OnPlayerFadeFlashed(playeridcolorspeed);
// **NATIVES** //
/*
    native Seifader_OnExit();
    native RemovePlayerColorFade(playerid);
    native FadePlayerScreen(playerid, color, speed);
    native FadePlayerScreenToColor(playerid, color, speed);
    native FlashPlayerScreen(playerid, color, speed, times);
    native IsValidPlayerFade(playerid, fadeid);
*/
/*x---------------------------------Functions-------------------------------------x*/
/*
                                            ---[FadePlayerScreen]---
            »playerid: the target
            »color: the color you want his screen to fade from
            »speed: from 1-255 where 255 is the fastest(instant)
            »wipe_other_colorfades: (optional) we want no bug to occur, so this will make sure there's
                                                no other fade that could've messed with it and thus maybe causing
                                                a player's screen to be stuck at a color. It's random but you always
                                                want to prevent it. I've fully tested this include and rarely
                                                encountered that issue. Unfortunately, nothing is bug-free.
            *Return: id of the fade
        *-----------------------------------------------*
        | Fades the player's screen from a color.        |
        *-----------------------------------------------*
*/
stock FadePlayerScreen(playeridcolorspeedbool:wipe_other_colorfades true)
{
    if (
wipe_other_colorfades == trueRemovePlayerColorFade(playerid);
    new 
fadeid FindFadeID(playerid);
    new 
maxalpha GetAlpha(color);
    
PlayerFadeText[playerid][fadeid] = TextDrawCreate(0.00.0"_");
    
TextDrawFont(PlayerFadeText[playerid][fadeid], 1);
    
TextDrawLetterSize(PlayerFadeText[playerid][fadeid], 0.050.0);
    
TextDrawUseBox(PlayerFadeText[playerid][fadeid], true);
    
TextDrawColor(PlayerFadeText[playerid][fadeid], 0);
    
colorfade[playerid][fadeid] = color;
    
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], color);
    
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
    
FadeAvailability[playerid][fadeid] = 1;
    
FlashFade[playerid][fadeid] = false;
    
SetTimerEx("ScreenFade"1000"ddddd"playeridcolorspeedmaxalphafadeid);
    return 
fadeid;
}
/*
                                            ---[FadePlayerScreenToColor]---
            »playerid: the target
            »color: the color you want his screen to fade TO
            »speed: from 1-255 where 255 is the fastest(instant)
            *Return: id of the fade
        *-----------------------------------------------*
        | Fades the player's screen to a color.            |
        *-----------------------------------------------*
*/
function FadePlayerScreenToColor(playeridcolorspeed)
{
    new 
fadeid FindFadeID(playerid);
    new 
maxalpha GetAlpha(color);
    
PlayerFadeText[playerid][fadeid] = TextDrawCreate(0.00.0"_");
    
TextDrawFont(PlayerFadeText[playerid][fadeid], 1);
    
TextDrawLetterSize(PlayerFadeText[playerid][fadeid], 0.050.0);
    
TextDrawUseBox(PlayerFadeText[playerid][fadeid], true);
    
TextDrawColor(PlayerFadeText[playerid][fadeid], 0);
    
color -= maxalpha;
    
colorfade[playerid][fadeid] = color;
    
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], color);
    
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
    
FadeAvailability[playerid][fadeid] = 1;
    
FlashFade[playerid][fadeid] = false;
    
SetTimerEx("ScreenFadeColor"1000"ddddd"playeridcolorspeedmaxalphafadeid);
    return 
fadeid;
}
/*
                                            ---[FlashPlayerScreen]---
            »playerid: the target
            »color: the color you want his screen to flash to
            »speed: from 1-255 where 1 is the fastest(instant)
            »times: amount of flashes
            *Return: id of the fade
        *-----------------------------------------------*
        | Flashes the player's screen. Basically, this    |
        | is a mix of FadePlayerScreen and ToColor        |
        | together to make your screen flash.            |
        *-----------------------------------------------*
*/
function FlashPlayerScreen(playeridcolorspeedtimes)
{
    new 
fadeid FindFadeID(playerid);
    new 
maxalpha GetAlpha(color);
    
PlayerFadeText[playerid][fadeid] = TextDrawCreate(0.00.0"_");
    
TextDrawFont(PlayerFadeText[playerid][fadeid], 1);
    
TextDrawLetterSize(PlayerFadeText[playerid][fadeid], 0.050.0);
    
TextDrawUseBox(PlayerFadeText[playerid][fadeid], true);
    
TextDrawColor(PlayerFadeText[playerid][fadeid], 0);
    
color -= maxalpha;
    
colorfade[playerid][fadeid] = color;
    
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], color);
    
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
    
FadeAvailability[playerid][fadeid] = 1;
    
FlashFade[playerid][fadeid] = true;
    
FlashFadeTimes[playerid][fadeid] = times;
    
SetTimerEx("ScreenFadeColor"1000"ddddd"playeridcolorspeedmaxalphafadeid);
    return 
fadeid;
}
/*
                                            ---[RemovePlayerColorFade]---
            »playerid: the target
        *-----------------------------------------------*
        | Removes every fade made to a player.            |
        *-----------------------------------------------*
*/
function RemovePlayerColorFade(playerid// This function is used to erase every fade made for the player. Should be used before FadePlayerScreen to make sure there's no bug
{
    for(new 
iMAX_FADESi++)
    {
        
TextDrawDestroy(PlayerFadeText[playerid][i]);
        
FadeAvailability[playerid][i] = 0;
        
FlashFade[playerid][i] = false;
        
FlashFadeTimes[playerid][i] = 0;
    }
}
/*
                                            ---[IsValidPlayerFade]---
            »playerid: the target
            »fadeid: the fade id you want to check
            *Return: 1 if valid, 0 if invalid
        *-----------------------------------------------*
        | Checks if the fade id is valid, meaning        |
        | if it's being used by the player or not.        |
        *-----------------------------------------------*
*/
function IsValidPlayerFade(playeridfadeid) return FadeAvailability[playerid][fadeid];
//------------------------------------------------: Script functions :---------------------------------------------------//
Seifader_OnExit()
{
    for(new 
allGetMaxPlayers(); all mall++)
    {
        if (
IsPlayerNPC(all) || !IsPlayerConnected(all)) continue;
        for(new 
fMAX_FADESf++)
        {
            
TextDrawDestroy(PlayerFadeText[all][f]);
            
FadeAvailability[all][f] = 0;
            
FlashFade[all][f] = false;
            
FlashFadeTimes[all][f] = 0;
        }
    }
}
function 
ScreenFade(playeridcolorspeedmaxalphafadeid)
{
    if (
color <= (colorfade[playerid][fadeid] - maxalpha))
    {
        
FADECOLOR_FINISH:
        
TextDrawDestroy(PlayerFadeText[playerid][fadeid]);
        
OnPlayerScreenFade(playeridcolorspeed);
        
FadeAvailability[playerid][fadeid] = 0;
    }
    else
    {
        if (!
FadeAvailability[playerid][fadeid]) return 1;
        
color -= speed;
        if (
color <= (colorfade[playerid][fadeid] - maxalpha)) goto FADECOLOR_FINISH//color = (colorfade[playerid][fadeid] - maxalpha);
        
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], color);
        
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
        
SetTimerEx("ScreenFade"1000"ddddd"playeridcolorspeedmaxalphafadeid);
     }
     return 
1;
}
function 
ScreenFade_Flash(playeridcolorspeedmaxalphafadeid)
{
    if (
color <= colorfade[playerid][fadeid])
    {
        
FADECOLOR_FINISH:
        if (
FlashFade[playerid][fadeid] == true)
        {
            if (!
FlashFadeTimes[playerid][fadeid])
            {
                
TextDrawDestroy(PlayerFadeText[playerid][fadeid]);
                
OnPlayerFadeFlashed(playeridcolorspeed);
                
FadeAvailability[playerid][fadeid] = 0;
                return 
1;
            }
            
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], colorfade[playerid][fadeid]);
            
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
            
SetTimerEx("ScreenFadeColor"1000"ddddd"playeridcolorfade[playerid][fadeid], speedmaxalphafadeid);
            return 
1;
        }
        
TextDrawDestroy(PlayerFadeText[playerid][fadeid]);
        
OnPlayerScreenFade(playeridcolorspeed);
        
FadeAvailability[playerid][fadeid] = 0;
    }
    else
    {
        if (!
FadeAvailability[playerid][fadeid]) return 1;
        
color -= speed;
        if (
color <= colorfade[playerid][fadeid]) goto FADECOLOR_FINISH//color = (colorfade[playerid][fadeid] - maxalpha);
        
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], color);
        
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
        
SetTimerEx("ScreenFade_Flash"1000"ddddd"playeridcolorspeedmaxalphafadeid);
     }
     return 
1;
}
function 
ScreenFadeColor(playeridcolorspeedmaxalphafadeid)
{
    if (
color >= (colorfade[playerid][fadeid] + maxalpha))
    {
        
FADE_FINISH:
        if (
FlashFade[playerid][fadeid] == true)
        {
            
FlashFadeTimes[playerid][fadeid]--;
            
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], colorfade[playerid][fadeid]+maxalpha);
            
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
            
SetTimerEx("ScreenFade_Flash"1000"ddddd"playeridcolorfade[playerid][fadeid]+maxalphaspeedmaxalphafadeid);
            return 
1;
        }
        
OnPlayerScreenColorFade(playeridcolorspeed);
        
FadeAvailability[playerid][fadeid] = 0;
    }
    else
    {
        if (!
FadeAvailability[playerid][fadeid]) return 1;
        
color += speed;
        if (
color >= (colorfade[playerid][fadeid] + maxalpha)) goto FADE_FINISH;
        
TextDrawBoxColor(PlayerFadeText[playerid][fadeid], color);
        
TextDrawShowForPlayer(playeridPlayerFadeText[playerid][fadeid]);
        
SetTimerEx("ScreenFadeColor"1000"ddddd"playeridcolorspeedmaxalphafadeid);
     }
     return 
1;
}
function 
FindFadeID(playerid)
{
    for(new 
fMAX_FADESf++)
    {
        if (
FadeAvailability[playerid][f] == 0)
        {
            
//printf("found fade id: %d", f);
            
return f;
        }
    }
    return -
1;
}
function 
GetAlpha(color)
{
    return 
color&0xFF;
}
// Required in your script that uses this include, otherwise you'll get an error:
public OnPlayerScreenFade(playeridcolorspeed)
{
    return 
1;
}
public 
OnPlayerScreenColorFade(playeridcolorspeed)
{
    return 
1;
}
public 
OnPlayerFadeFlashed(playeridcolorspeed)
{
    return 
1;

flash.inc ^^
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)