Quantcast
Channel: SA-MP Forums - Filterscripts
Viewing all 595 articles
Browse latest View live

[FilterScript] Clock System (Simple)

$
0
0


Hey guys, I was playing and I just got this idea, and I'm coming here posting it for you
(progress bar indicates seconds)

Code:

#include a_samp
#include progress

new Text:r_bottom;
new Text:r_hour;
new Text:r_edge;
new Text:r_edge2;
new Text:r_edge3;
new Bar:r_seconds;

public OnGameModeInit()
{
    r_seconds = CreateProgressBar(548.00, 37.00, 76.50, 7.19, -1048321, 60.0);

        r_bottom = TextDrawCreate(628.352600, 6.750000, "usebox");
        TextDrawLetterSize(r_bottom, 0.000000, 2.988888);
        TextDrawTextSize(r_bottom, 544.352844, 0.000000);
        TextDrawAlignment(r_bottom, 1);
        TextDrawColor(r_bottom, 0);
        TextDrawUseBox(r_bottom, true);
        TextDrawBoxColor(r_bottom, 102);
        TextDrawSetShadow(r_bottom, 0);
        TextDrawSetOutline(r_bottom, 0);
        TextDrawFont(r_bottom, 0);

        r_hour = TextDrawCreate(550.588134, 0.583346, "00:00");
        TextDrawLetterSize(r_hour, 0.609529, 3.705832);
        TextDrawAlignment(r_hour, 1);
        TextDrawColor(r_hour, -1);
        TextDrawSetShadow(r_hour, -1);
        TextDrawSetOutline(r_hour, 0);
        TextDrawBackgroundColor(r_hour, 51);
        TextDrawFont(r_hour, 2);
        TextDrawSetProportional(r_hour, 1);

        r_edge = TextDrawCreate(546.352966, 1.750000, "LD_SPAC:white");
        TextDrawLetterSize(r_edge, 0.000000, 0.000000);
        TextDrawTextSize(r_edge, 80.470588, 2.916666);
        TextDrawAlignment(r_edge, 1);
        TextDrawColor(r_edge, 255);
        TextDrawSetShadow(r_edge, 0);
        TextDrawSetOutline(r_edge, 0);
        TextDrawFont(r_edge, 4);

        r_edge2 = TextDrawCreate(545.941223, 43.000000, "LD_SPAC:white");
        TextDrawLetterSize(r_edge2, 0.000000, 0.000000);
        TextDrawTextSize(r_edge2, 80.470588, 2.916666);
        TextDrawAlignment(r_edge2, 1);
        TextDrawColor(r_edge2, 255);
        TextDrawSetShadow(r_edge2, 0);
        TextDrawSetOutline(r_edge2, 0);
        TextDrawFont(r_edge2, 4);

        r_edge3 = TextDrawCreate(546.000061, 36.416671, "LD_SPAC:white");
        TextDrawLetterSize(r_edge3, 0.000000, 0.000000);
        TextDrawTextSize(r_edge3, 2.352943, 9.333333);
        TextDrawAlignment(r_edge3, 1);
        TextDrawColor(r_edge3, 255);
        TextDrawSetShadow(r_edge3, 0);
        TextDrawSetOutline(r_edge3, 0);
        TextDrawFont(r_edge3, 4);
        SetTimer("r_update", 500, true);
        return true;
}

public OnPlayerSpawn(playerid)
{
        clock(playerid);
        return true;
}

forward r_update();
public r_update()
{
        new string[10], hour, minutes, seconds;
        gettime(hour, minutes, seconds);
        format(string, sizeof string, "%02d:%02d", hour, minutes), TextDrawSetString(r_hour, string);
        SetProgressBarValue(r_seconds, seconds), UpdateProgressBar(r_seconds);
}

stock clock(playerid)
{
        ShowProgressBarForPlayer(playerid, r_seconds);
        TextDrawShowForPlayer(playerid, r_bottom);
        TextDrawShowForPlayer(playerid, r_hour);
        TextDrawShowForPlayer(playerid, r_edge);
        TextDrawShowForPlayer(playerid, r_edge2);
        TextDrawShowForPlayer(playerid, r_edge3);
        return true;
}


[FilterScript] xQuiz - Knowledge Contest // by XpDeviL

$
0
0

Hello everyone,

xQuiz is a knowledge contest. It’s just like a mini-game. You can create a contest with your own questions.


Features

* After adding min. 10 questions, admin can start the contest.
* Players can join the contest by typing /joinquiz in 30 seconds.
* Up to 20 players can participate in the contest.
* Players who mark the wrong question, quit the game, or do not make a choice within 30 seconds will be out of the contest.
* Players can leave the contest by typing /leavequiz.
* Players who answer all questions correctly or stand last will win the contest.
* Minimum 2 players can participate.
* The prize is given by the formula “number of correctly answered questions * number of players participating in the game * PRIZE_MULTIPLIER”.
* You can save your questions to MySQL if you want. You can set that option on the top of the script.


Video

https://youtu.be/4NFqeCy7Q1c
(Video is taken with the Turkish version of the script. But you can figure out how it works.)


Screenshots














Download

Mediafire

[FilterScript] Multiplayer & Singleplayer Snake in SAMP

$
0
0
SP & MP Snake
TLDR? How to get started can be found at the bottom of the post.

Brief Presentation
With this piece of code you can play snake both solo and against 2-3 other players.

To get started simply use the command /snake ingame.

From there you will be able to navigate yourself into a game in no time with ease with the minimalistic and stylish looking textdraw menus.

Your results will be saved into a local database file that you can browse ingame, and sort by playername in alphabetical order / size / kills / date & time in ascending and descending order.

See it for yourself! Check the video and image album below.

Disclaimer
This code has not been tested enough yet.
Bugs might occur and they will be fixed as soon as they're discovered.

Images
https://imgur.com/a/hTx73

Video
https://youtu.be/1DLlS3vu3AU

Code
Github Page: https://github.com/fusez/Snake
Download ZIP: https://github.com/fusez/Snake/archive/master.zip

Changelog
10th of November 2017
  • Released

How to Get Started
1. Download snake.pwn and put it in your filterscripts folder. Click here to download ZIP.
2. Compile snake.pwn with a compiler of your choice (pawno for example).
3. Load snake by adding it to the filterscripts in server.cfg or load it using the rcon command loadfs snake in the console.
4. Use the command /snake ingame.
5. Enjoy!

[FilterScript] Gift special for Kalcor

$
0
0
This is a gift specially for Kalcor.
If the truth causes anger in you, you must use this for cooling.

[FilterScript] Peace Keeper System

$
0
0
Introduction: Hello, first i would like to tell that it's my first filterscript and i didnt saw this system any where on samp forums so i like to release it on this forums, it can be useful cause if admins are offline so peace keeper can take care of server.

Commands:
/setpeacekeeper (rcon admin)
/pmreply (for players)
/pkcmds (for pk member)
/pks (for pk member)
/pkc (for pk member)
/pksay (for pk member)
/pkgoto (for pk member)
/pkget (for pk member)
/pkpm (for pk member)
/pkkick (for pk member)


Screen Shots:









Installation: First compile the .pwn then copy .amx of script then paste it to fiterscript then go to scriptfiles then create a folder name 'peacekeeper'.

LINK: Pastebin

Credits:
SA-MP Team for a_samp.inc
ZeeX for Zcmd.inc
DracoBlue for Dini.inc
Y_Less and Emmet_ for Sscanf2.inc

[FilterScript] Helper's System && Other Scripts

$
0
0
Introduction:hello guys, i scripted this first filterscript of helpers system because i checked their are very less scripts of helpers so i created i hope you like it

Helper's System

Helper's Commands:
/reply,
/hc,
/hduty,
hsay,
/pm,
/hgoto,
/hget


Installation:

1> Copy the code and compile it.
2> Put the amx in filterscripts folder.
3> Add name of filterscript in server.cfg.
4> Created folder named "helpers" in scriptfiles

Code:
PHP Code:

/* 2 Level's Helper System By PremiumGamer */
#define FILTERSCRIPT

#include <a_samp>
#include <dini>
#include <zcmd>
#include <foreach>
#include <sscanf2>

/* Colors */
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_YELLOW 0xFFFF00FF
#define COLOR_RED 0xFF0000FF
#define COLOR_HELPER 0x00E5EEFF

/* new defines */
new helper[MAX_PLAYERS];
new 
conversation[MAX_PLAYERS];

/*Saving*/
#define FILE_HELPER "helpers/%s.ini"

/* Players */
stock Players(playerid)
{
    new 
name[MAX_PLAYER_NAME];
    
GetPlayerName(playeridnamesizeof(name));
    return 
name;
}

public 
OnFilterScriptInit()
{
    print(
"\n--------------------------------------");
    print(
" 2 Level's Helper System By PremiumGamer");
    print(
"--------------------------------------\n");
    return 
1;
}

public 
OnFilterScriptExit()
{
    return 
1;
}

public 
OnPlayerRequestClass(playeridclassid)
{
    
SetPlayerPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraPos(playerid1958.37831343.157215.3746);
    
SetPlayerCameraLookAt(playerid1958.37831343.157215.3746);
    return 
1;
}

public 
OnPlayerConnect(playerid)
{
    return 
1;
}

public 
OnPlayerDisconnect(playeridreason)
{
    return 
1;
}

CMD:sethelper(playeridparams[])
{
    new 
giveplayeridmoneys1giveplayer[25], string[256], playername[25], helpers[MAX_PLAYERS];
    if (
sscanf(params"ud"giveplayeridmoneys1)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /sethelper [playerid] [0 = not helper, 1 = helper, 2 = helper level 2]");
    if (!
IsPlayerConnected(giveplayerid)) return SendClientMessage(playeridCOLOR_RED"Error: Inactive player id!");
    if (
moneys1 || moneys1 2) return SendClientMessage(playeridCOLOR_RED"Error: 0 = not helper, 1 = helper level 1, 2 = helper level 2.");
    
GetPlayerName(giveplayeridgiveplayerMAX_PLAYER_NAME);
    if (
moneys1 == helper[giveplayerid])
    {
        if (
giveplayerid != playerid)
        {
            if (
moneys1 == 0)
            {
                
format(string64"%s is not set as a helper."giveplayer);
                
SendClientMessage(playeridCOLOR_WHITEstring);
            }
            else
            {
                
format(string64"%s is already set as a helper."giveplayer);
                
SendClientMessage(playeridCOLOR_WHITEstring);
            }
        }
        else
        {
            if (
moneys1 == 0SendClientMessage(playeridCOLOR_WHITE"You are not set as a helper.");
            else 
SendClientMessage(playeridCOLOR_WHITE"You are already set as a helper.");
        }
        return 
1;
    }
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    if (
moneys1 != 0)
    {
        
format(helperssizeof(helpers), FILE_HELPERgiveplayer);
        
dini_IntSet(helpers"helper"moneys1);
        if (
giveplayerid != playerid)
        {
            
SendClientMessage(giveplayeridCOLOR_YELLOW"You have been set as a helper.");
            
format(string64"You have set %s as a helper."giveplayer);
            
SendClientMessage(playeridCOLOR_YELLOWstring);
            
SendClientMessage(giveplayeridCOLOR_YELLOW"Check /hcmds for available helper commands.");
        }
        else 
SendClientMessage(playeridCOLOR_YELLOW"You have set yourself as a helper.");
    }
    else
    {
        
format(helperssizeof(helpers), FILE_HELPERgiveplayer);
        
dini_IntSet(helpers"helper"moneys1);
        if (
giveplayerid != playerid)
        {
            
SendClientMessage(giveplayeridCOLOR_WHITE"You have been removed as a helper.");
            
format(string64"You have removed %s as a helper."giveplayer);
            
SendClientMessage(playeridCOLOR_YELLOWstring);
        }
        else 
SendClientMessage(playeridCOLOR_WHITE"You have removed yourself as a helper.");
    }
    
helper[giveplayerid] = moneys1;
    return 
1;
}

// Helpers Commands
CMD:hcmds(playeridparams[])
{
    if(!
helper[playerid]) return 0;
    if(
helper[playerid] == 1)
    {
        
SendClientMessage(playeridCOLOR_HELPER"Junior Helper Commands");
        
SendClientMessage(playeridCOLOR_WHITE"/reply, /hc, /hduty, /hsay, /pm");
    }
    if(
helper[playerid] == 2)
    {
        
SendClientMessage(playeridCOLOR_HELPER"Senior Helper Commands");
        
SendClientMessage(playeridCOLOR_WHITE"/reply, /hc,/hduty, hsay, /pm, /hgoto, /hget");
    }
    return 
1;
}

//if any player do /ask then the heleprs cn help him by /reply
CMD:reply(playeridparams[])
{
    new 
giveplayeridtmp2[256], moneys1playername[25], giveplayer[25], string[270];
    if (
helper[playerid] == 0) return SendClientMessage(playeridCOLOR_RED"Error: You aren't a helper.");
    if (
sscanf(params"us[128]"giveplayeridtmp2)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /reply [playerid] [message]");
    if (!
IsPlayerConnected(giveplayerid)) return SendClientMessage(playeridCOLOR_RED"Error: Inactive player id!");
    if(
conversation[giveplayerid] == 0) return SendClientMessage(playeridCOLOR_RED"Error: That player did not start coversation with helpers team!");
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    
GetPlayerName(giveplayeridgiveplayerMAX_PLAYER_NAME);
    if (
helper[playerid] == 1)
    
format(string64"Help - %s: %s"playernametmp2);
    
SendClientMessageToAll(giveplayerid,string);
    for (new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i) && helper[i] == && != giveplayerid)
        {
            
format(string64"[Junior Helper] - %s: %s"playernametmp2);
            
SendClientMessageToAll(i,string);
            
moneys1 ++;
        }
    }
    if (
helper[playerid] == 2)
    
format(string64"Senior Helper - %s: %s"playernametmp2);
    
SendClientMessageToAll(playerid,string);
    for (new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i) && helper[i] == && != giveplayerid)
        {
            
format(string64"[Senior Helper] - %s: %s"playernametmp2);
            
SendClientMessageToAll(i,string);
            
moneys1 ++;
        }
    }
    
printf("[helper] %s (Id%d) to %s (Id%d) %s"playernameplayeridgiveplayergiveplayeridtmp2);
    return 
1;
}
//you can /hsay to show players tht if u need help do /ask
CMD:hsay(playeridparams[])
{
    new 
tmp[256], playername[25], tmp2[256],string[256];
    if (
helper[playerid] == 0) return SendClientMessage(playeridCOLOR_RED"Error: You aren't a helper.");
    if (
sscanf(params"s[128]"tmp)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /hsay [message]");
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    if (
helper[playerid] == 1)
    {
    
format(tmp2sizeof(tmp2), "say %s"tmp);
    
format(stringsizeof(string), "* Junior Helper: %s"tmp);
    
SendClientMessageToAll(COLOR_HELPERstring);
    }
    if (
helper[playerid] == 2)
    {
       
format(tmp2sizeof(tmp2), "say %s"tmp);
    
format(stringsizeof(string), "* Senior Helper: %s"tmp);
    
SendClientMessageToAll(COLOR_HELPERstring);
    }
    
printf("[ssay] %s: %s"playernametmp);
    return 
1;
}
//this is helpers chat here helpers can do chatting
CMD:hc(playeridparams[])
{
    new 
tmp[256], tmp2[256], playername[25];
    if (
helper[playerid] == 0) return SendClientMessage(playeridCOLOR_RED"Error: You aren't a helper.");
    if (
sscanf(params"s[128]"tmp)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /hc [message]");
    if (
helper[playerid] == 1)
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    
format(tmp2sizeof(tmp2), "Junior Helper [%s] %s"playernametmp);
    for (new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i) && helper[i] == 1SendClientMessage(iCOLOR_HELPERtmp2);
    }
    if (
helper[playerid] == 2)
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    
format(tmp2sizeof(tmp2), "Senior Helper [%s] %s"playernametmp);
    for (new 
0MAX_PLAYERSi++)
    {
        if (
IsPlayerConnected(i) && helper[i] == 2SendClientMessage(iCOLOR_HELPERtmp2);
    }
    
printf(tmp2);
    return 
1;
}
//by doing /hduty player will go on helpers duty and then if other players need help they cn do /ask
CMD:hduty(playeridparams[])
{
    new 
playername[MAX_PLAYER_NAME], string[270];
    if (
helper[playerid] == 0) return SendClientMessage(playeridCOLOR_RED"Error: You aren't a helper.");
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    if(
GetPVarInt(playerid"helperduty") == 0)
    {
        
SetPVarInt(playerid"playercolor"GetPlayerColor(playerid));
        
SetPlayerColor(playeridCOLOR_HELPER);
        
SetPVarInt(playerid"helperduty"1);
        
format(string64"%s is now helper on duty, use /ask if you need any help!"playername"");
        
SendClientMessageToAll(COLOR_HELPER,string);
    }
    else
    {
        
SetPlayerColor(playeridGetPVarInt(playerid"playercolor"));
        
SetPVarInt(playerid"helperduty"0);
        
format(string64"%s is now helper off duty."playername);
        
SendClientMessageToAll(COLOR_HELPER,string);
    }
    return 
1;
}
//this cmd allows you to pm other players
CMD:pm(playeridparams[])
{
    new 
tmp[160], giveplayeridgiveplayer[25], playername[25],string[256];
    if(
helper[playerid] == 0) return 0;
    
GetPlayerName(giveplayeridgiveplayerMAX_PLAYER_NAME);
    if (
sscanf(params"us[160]"giveplayeridtmp)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /pm [playerid] [message]");
    if (!
IsPlayerConnected(giveplayerid)) return SendClientMessage(playeridCOLOR_RED"Error: Inactive player id!");
    if (
giveplayerid == playerid) return SendClientMessage(playeridCOLOR_RED"Error: You can't send private message to your self!");
    
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
    
GetPlayerName(giveplayeridgiveplayerMAX_PLAYER_NAME);
    
format(stringsizeof(string), "{E6E600}PM from %s(%d): %s"playernameplayeridtmp);
    
SendClientMessage(giveplayeridCOLOR_YELLOWstring);
    
format(string,sizeof(string), "{FFFF00}PM to %s(%d): %s"giveplayergiveplayeridtmp);
    
SendClientMessage(giveplayeridCOLOR_YELLOW"You can use /pmr [message] for fast reply.");
    
SendClientMessage(playeridCOLOR_WHITEstring);
    return 
1;
}
//by this players can ask question about ur server or if they need help
CMD:ask(playeridparams[])
{
        new 
tmp[254],string[200],playername[64],moneys1;
        if (
sscanf(params"s[128]"tmp)) return SendClientMessage(playeridCOLOR_WHITE"Usage: /ask [message]");
        
GetPlayerName(playeridplayernameMAX_PLAYER_NAME);
        for (new 
0MAX_PLAYERSi++)
        {
            if (!
IsPlayerConnected(i) || helper[i] == 0) continue;
            {
                
format(stringsizeof(string), "%s (Id%d) asked: %s"playernameplayeridtmp);
                
SendClientMessage(iCOLOR_HELPERstring);
            }
            
moneys1 ++;
        }
        if (
moneys1 != 0)
        {
            
format(string64"You asked: %s"tmp"");
            
SendClientMessage(playeridCOLOR_HELPER,string);
            
printf("[ask] %s (Id%d) %s"playernameplayeridtmp);
            
conversation[playerid] = 1;
        }
        else
        {
            
SendClientMessage(playeridCOLOR_RED"There are currently no helpers online.");
        }
        return 
1;
}
//by this cmd you can end the ask
CMD:askend(playerid,params[])
{
    if(
conversation[playerid] == 0) return SendClientMessage(playerid,COLOR_RED,"Error: You are not talking to a helper.");
    
conversation[playerid] = 0;
    
SendClientMessage(playerid,COLOR_RED,"You have ended your conversation with the helpers team.");
    return 
1;
}

//by this command players can see how much helpers online and who is online
CMD:hdos(playeridparams[])
{
    new 
moneys1string[128], string1[270];
     for (new 
0MAX_PLAYERSi++)
     {
          if (
IsPlayerConnected(i))
          {
           if (
helper[i] == 1)
           {
                
moneys1 ++;
           }
           else if(
helper[i] == 2)
           {
                 
moneys1++;
           }
          }
     }
     if (
moneys1 != 0)
     {
        
SendClientMessage(playeridCOLOR_HELPER"Current Online Help Desk Operators:");
          for (new 
0MAX_PLAYERSi++)
        {
             if (
IsPlayerConnected(i))
              {
                   if (
helper[i] == 1)
                {
                      
format(string128"Junior Helper: %s(%d) {FFFFFF}[Level 1]"Players(i), i);
                      
SendClientMessage(playeridCOLOR_HELPERstring);
                }
                      else if (
helper[i] == 2)
                {
                      
format(string1128"Senior Helper: %s(%d) {FFFFFF}[Level 2]"Players(i), i);
                      
SendClientMessage(playeridCOLOR_HELPERstring1);
                }
            }
             }
     }
     else 
SendClientMessage(playeridCOLOR_RED"There are currently no help desk operators online.");
     return 
1;


Credits:
SA-MP Team for a_samp.inc
Y_Less and Emmet_ for sscanf2.inc
DracoBlue for Dini.inc
ZeeX for Zcmd.inc

[FilterScript] RCookies - The first reward system that fits all the kinds of servers

$
0
0
RCookies V1.0 by R4nd4ll


Hello there !

This is my second FS. I created this while trying to learn PAWN.
This is considered as my first FS tho, Because the first one was trash.

It's a simple cookies reward system to reward the dedicated players in your server for any reason.
Yeah so, It's pretty simple.


Ranks and Commands



Normal Player : /usecookies - /cookies
Junior Rewarder : /givecookie - /giveallcookie - /rewarderhelp
General Rewarder : /setcookies
Head Rewarder : /makerewarder

P.S : /cookies is to check how many cookies you've got.

Includes :


sscanf2 - By Y_Less & Emmet
foreach - Y_Less
ZMCD - Zeex
Yini - Y_Less

Special thanks to :



Y_Less - who made our scripting life easier
Emmet - The 2nd legend after Y_Less
Arbico
Ritzy
Zeex
Sorry if i forgot anyone...
Screenshots :

I'll add more later, I am busy with something atm

Download :

[FilterScript] XpDeviL’s Object Attacher

$
0
0

Hello everyone,

With this script, you can easily attach objects to player.

Features

* You can attach up to 5 objects at the same time.
* You can easily edit the object that you attached.
* You can change remove one or all objects.
* You can see detailed information (position, ID etc.) of the object that you editing.


Screenshot

Click for the image


Video

https://youtu.be/DMZWpTabrWE
(Video has been uploaded a long time ago with Turkish version. But I added English subtitles)


Download

Mediafire

[FilterScript] Sistema de Chat Proximo + Remover de Icones dos Player no Mapa.

$
0
0
Fala ai Galera Blz? Bom sou um programador novato faz apenas 5 meses que estou trabalhando nisso e hoje trago uma dúvida que muitas pessoas tem, sei que isso é bem simples mais para algumas pessoas podem ser complicado.

Bom então trago aqui um sistema para remover os icones dos players no mapa do seu servidor. e outro que é do Chat Proximo muito bom para servidores RPG.



Chat Proximo


PHP Code:

public OnPlayerText(playeridtext[])
{
     if(
text[0] == '!')
     {
          new 
Float:Pos[3], Name[24], string[128];
          
GetPlayerName(playeridNamesizeof(Name));
          
GetPlayerPos(playeridPos[0], Pos[1], Pos[2]);
          
format(stringsizeof(string), "%s Diz: %s"Nametext[1]); // Faltava o ;
          
for(new 0MAX_PLAYERSi++)
          {
               if(
IsPlayerInRangeOfPoint(i50.0Pos[0], Pos[1], Pos[2]))
               {
                     
SendClientMessage(i, -1string);
               }
           }
     }
     return 
1;




Removedor de Icones Players


PHP Code:

public OnGameModeInit()
{
ShowPlayerMarkers(PLAYER_MARKERS_MODE_OFF);
return 
1;



Bom Galera Esses ai são os sistemas espero que ajudem vocês se der algum, me falem ai para eu poder ajuda-lo.

[FilterScript] Vip System

[FilterScript] ClearChat

$
0
0
Hola! Hoy les traigo un include hecho por mi
es un FilterScript super sencillo y básico.


¿Cuando Utilizarlo?


• Si comentan en el chat (IP/Address).
• Si llegan a pronunciar una (Palabra Inadecuada).
• Si llegan a (Insultar).
• Si llegan a hacer (Spam, Flood).
• Etcétera.


¿Comandos?


• /clearchat
• Recomiendo enviar varios ("/clearchat") por que este comando envía mensajes vacíos pero pocos para no dar lag al juego


¿Función?


• Vacia, el chat por completo.
• Envía mensajes en blancos.


¿Bugs?


• En si, no hay bugs si llegas a hallar uno me avisas por:
• Email: imseba2004@gmail.com
• Enviándome mensaje privado.


¿Créditos?


• Script: SebaLBP.

¿Descargarlo?


[FilterScript] CustomJoinManager

$
0
0
Hola! Hoy les traigo un include hecho por mi
es un FilterScript super sencillo y básico.


¿Cuando Utilizarlo?


• Es automático

¿Comandos?


• Es automático

¿Función?


• Muestra cuando algun player/jugador ("entra/sale") de nuestro servidor.

¿Bugs?


• En si, no hay bugs si llegas a hallar uno me avisas por:
• Email: imseba2004@gmail.com
• Envíame: Mensaje Privado


¿Créditos?


• Script: SebaLBP.

¿Descargarlo?


[FilterScript] Aka system SQLite

$
0
0
As the title says, it's just a simple system from aka, believes it a long time ago, I just come to share it so you can see the code and get good ideas. Enjoy it .. regards :)

SQLite



download

PASTEBIN

[FilterScript] Disable KEY_FIRE Sync for vehicles (prevent shooting from Sea Sparrow, Hunter, etc)

$
0
0
With this FS you can prevent KEY_FIRE and KEY_ACTION (Secondary Fire) for selected vehicles you add.
This will allow you to add Sea Sparrow, Hunter, etc. without its deadly features!

Has a callback that allows you to handle how the player can be warned, etc.

Needs Pawn.RakNet.

Download:
Pastebin

Video demonstration:
https://www.youtube.com/watch?v=HGLVPX9UwQU

This release is for mainly demonstration purposes. Although it can be used as a standalone FS, I encourage you to add it properly to your GM Script.

If you can make improvements to mi shitty modelid checks please do so!
Thanks!

[FilterScript] Version kick.

$
0
0
A simple version kick.
Introduction:
Advantages:
1- Make sure that your players are up to date, to make sure the players got all the new functions in the new versions.
2- Many of the cheats are based on older version, like the most known cheats, projects that aren't open-source..etc
3-Less moderation for you over new players, basically turn the version kick off when you're on, turn it on when you're off, server safe.

Disadvantages:
it does kick a shitload of players because many use the 0.3.7 version, but that's why i added the ability to tog the version kick by using /togversion
Why its based at OnPlayerConnect:
Because i don't want to give them a chance to do anything with their cheats, safer to not even spawn.
Since i haven't seen any type of a version kick and i'm not sure if everyone can do this, i mean i know it isn't rocket sience but some ppl might not be able to do it, so hope this helps some, no need for credits or anything its just a simple snippet, i realize that it might not be efficient but it is effective and i tested it many.
How to install?
Very easy, basically visit the pastebin link, paste all of the lines underneath the listed functions, if you have any suggestions/criticizes about the script i'll be more than glad to listen to them, have a good one.
Pastebin:
https://pastebin.com/A7dgrw23
If anything, the .pwn and .amx files are attached, have fun guys. PS: the version tog is turned on by default, number of lines: 70, fully explained everything on the pastebin link.

Attached Files
File Type: pwn versionkickexm.pwn (3.3 KB)
File Type: amx versionkickexm.amx (2.4 KB)

[FilterScript] Simple trucking filterscript

$
0
0
Simple Trucking filterscript
Hello there,
I did create a simple trucking system which is perfectly as a roleplay server job.
Feel free to use it and edit it to your needs.

You need the following plugins for this script.
#include <a_samp>
#include <streamer>
#include <zcmd>
#include <sscanf2>

Code:

// This script is protected by the Copyright law.                            //
// This script may NEVER be redistrubuted without permission.                //

Features
- Each delivery weights X kg's and max truck weight is 40 tons.
- About 12 trucking depots ALL over the map
- Feature for cops to check your weight. /checkweight
- Feature for cops to seize the cargo(destroy it) only works if truck is overloaded. More then 40k is overloaded. /seizecargo
- Option to detach trailer /detach
- Option to view the vehicles cargo. /cargo
- Trailers placed at trucking locations thanks to DutchBoy
- This job can be done using 4 different vehicles
403 - Linerunner , requires trailer attached to truck
514 - Petroltruck, requires trailer attached to truck
515 - Roadtrain, requires trailer attached to truck
573 - Duneride no trailer required.

Things you should change:

/seizecargo and /checkcargo should be cop commands.
You should add something in the commands like:
if(!IsPlayerCop(playerid)return SendClientMessage(playerid,GREY,"You are not a cop");
Or however your cop system works, this is different for everyone.

Screenshots
http://losangeles-roleplay.com/trucking/1.png
http://losangeles-roleplay.com/trucking/2.png
http://losangeles-roleplay.com/trucking/3.png
http://losangeles-roleplay.com/trucking/4.png
http://losangeles-roleplay.com/trucking/5.png



Attached Files
File Type: amx JaspersTruckingScript.amx (188.2 KB)
File Type: pwn JaspersTruckingScript.pwn (182.9 KB)

[Include] Addons (With anti-Money Hack)

$
0
0
Addons

Iv been thinking today how could scripting be easy, so I thought that I make an include that's helps in this
Features
Anti-Money Hack
have you ever wanted your server to be fare?
-SetMoney(playerid, amount of money you want)
-GiveMoney(playerid, amount of money your want it works with negative accounts to decrease money)
-ResetMoney(playerid) resets player money
-GetMoney(playerid) gets how much money the player have
-CheckMoney(playerid) check if his money isn't hacked, and if it is it set it to ints original value (I suggest using this on OnPlayerUpdate)
-CanPayMoney(playerid, amount of money) return true if he can pay the amount of money false if he cant
Others
-GetName(playerid), return the player name
-GetAddonsVersion() print in the console the version of the include
Last But Not Least
function system for example if you made a timer called Test you will have to forward it and then do public Test(bla bla bla) function make it easier once you made the timer you just do function Test(the arg if it had some)and then { your code here}
loop, after foreach looping has been easier I made another version of it and more basic which is loop
where it make it easier than for() you can use loop like this loop(x, MAX_PLAYERS) {this is your code here} this will make a loop along all the players its same as for(new x=0; x<MAX_PLAYERS; x++)
Bugs?
None if you found any tell me
Dowload[with example script]: Solidfiles
Please, wait for upcoming updates :)

[FilterScript] Accessible In-Game players database[+Detecting Multi-Accounting]

$
0
0
Greetings SA-MP community, as i had more free time decided to make another release, an accessible in game database that also detects multi-accounting in a way.
READ BEFORE GOING THROUGH THE POST!!!!!!
1- i do NOT care if you think dini is slow
2- i do NOT care if you can do this in a more optimized way
3- i do NOT care if you think that this isn't a filterscript/useful code/well optimized coded
//==//

^^^ Posted in the manner to point out the childish comments only, mature creative criticism is indeed accepted.

-----------
Agreeing to that, go on to the post, any comments relevant to the statements above will be 100% ignored.
ALTHOUGH, i don't mind useful comments, if you see that i missed something, did something in a wrong way or could've done it better, simply point it out, tell me where i went wrong and/or where i could've done better i will include ur name in the post and the code u helped me at and on top of that thank you.
If anyone has any suggestions just mention them below and i'll look at them and do them if i'm able to code/time wise.


What does this do?

Simply put all this does is the following: catching player's data in a file called Database in scriptfiles under their name, records player ip, hardware id, name, changing hardware id , changing ip and the player's client version. Afterwards, it saves them in a file, also saves the player's LAST connected time through OnPlayerDisconnect, ALSO it gives u the ability to detect multiaccounters explained by the following:
When you try catching a value through a name using dini you save it under like Password: 1234,
what was used here is the reversed mode, saving the player's ip,hardware id then putting his name next to it and constantly checking if that ip /hardware id exists before and adding names/new hardware ids/ips if they didn't exist before, all of this can be viewed THROUGH THE GAME by doing a /getpstats [playername] command.
PLEASE NOTE THAT: player's who haven't connected after u implement this in your script won't get recorded, the system works onplayerconnect.

HOW TO USE:

YOU MUST create 4 files ,A FOLDER CALLED MultiAccountersBase (IN SCRIPTFILES) AND PUT IN THAT TWO .TXT FORMAT FILES, FIRST: haka.txt AND SECOND: aka.txt AND CREATE A FOLDER NAMED Database(IN SCRIPTFILES)
And as stated above, simply login, login as rcon because thats the admin system used in my script, u can change that, do /getpstats [playername] and you'll get a dialog containing his stats, note that onplayerconnect first time the changing hardware id/changing ip will equal the constant ones and always will until the player changes either and connects ( makes sense? ).

WARNING: the hardware id matching detection function is not very accurate as it can match up too many users who aren't related, but it's there just for doubts, the IP one is WAY more recommended to be used as a constant multi-account detector.
SOURCE THROUGH PASTEBIN:
https://pastebin.com/jSG4m5L0
=======================
Anyone is free to edit this as they want there's also no need for credits as i don't really care about that either, if you find any bugs which i doubt you'd cuz i already tested it, kindly report them in the comments and i'll reply with a fix, thanks and hope you enjoy it explained and widened on the pastebin, done files attached, NUMBER OF LINES(attached files): 60,NUMBER OF LINES PASTEBIN: 105, 4 INCLUDES, 3 DEFINITIONS, 2 FUNCTIONS, 1 CMD .
EDIT: UPDATED.
PIC:
(of course i hid my values but on yours will give you your wanted values.)

Attached Files
File Type: pwn igdatabase.pwn (5.5 KB)
File Type: amx igdatabase.amx (13.2 KB)

[FilterScript] Anti multiaccounting/multiaccounters + Ingame viewing players database

$
0
0
What does this do?


Simply put all this does is the following: catching player's data in a file called Database in scriptfiles under their name, records player ip, hardware id, name, changing hardware id , changing ip and the player's client version. Afterwards, it saves them in a file, also saves the player's LAST connected time through OnPlayerDisconnect, ALSO it gives u the ability to detect multiaccounters explained by the following:
When you try catching a value through a name using dini you save it under like Password: 1234,
what was used here is the reversed mode, saving the player's ip,hardware id then putting his name next to it and constantly checking if that ip /hardware id exists before and adding names/new hardware ids/ips if they didn't exist before, all of this can be viewed THROUGH THE GAME by doing a /getpstats [playername] command.

PLEASE NOTE THAT: player's who haven't connected after u implement this in your script won't get recorded, the system works onplayerconnect.

HOW TO USE:

YOU MUST create 4 files ,A FOLDER CALLED MultiAccountersBase (IN SCRIPTFILES) AND PUT IN THAT TWO .TXT FORMAT FILES, FIRST: haka.txt AND SECOND: aka.txt AND CREATE A FOLDER NAMED Database(IN SCRIPTFILES)
And as stated above, simply login, login as rcon because thats the admin system used in my script, u can change that, do /getpstats [playername] and you'll get a dialog containing his stats, note that onplayerconnect first time the changing hardware id/changing ip will equal the constant ones and always will until the player changes either and connects ( makes sense? ).
WARNING: the hardware id matching detection function is not very accurate as it can match up too many users who aren't related, but it's there just for doubts, the IP one is WAY more recommended to be used as a constant multi-account detector.

SOURCE THROUGH PASTEBIN:

https://pastebin.com/jSG4m5L0
=======================
Anyone is free to edit this as they want there's also no need for credits as i don't really care about that either, if you find any bugs which i doubt you'd cuz i already tested it, kindly report them in the comments and i'll reply with a fix, thanks and hope you enjoy it explained and widened on the pastebin


PIC:


Not attaching files to avoid constant upload/reupload. if i ever update this it's gonna exist on the pastebin link.
(of course i hid my values but on yours will give you your wanted values.)

[FilterScript] Delivery Job

$
0
0
Hello everyone !

My script isn't really mine, its the filterscript of FreAkeD can be found there : http://forum.sa-mp.com/showthread.php?t=590665

What i have changed ?

- Replacing ZCMD by dcmd, because its quite simple for new developpers.
- Removing foreach, just using a simple loop (there were only one loop using foreach).
- Burrito are now created in an array, to be destroy when the filterscript is unloaded to prevent multiple spawn at the same place, when reload.

- Now you have to get package in the trunk before delivring at the house. (Only used the special action carry, if someone have object informations for attach an objet to the player could be cool. :) )


Maybe future version :
Add Actor interaction for real delivering,
Add dynamic house position


Download

Pastebin

See you ! And Thanks to FreAkeD for his script.
Viewing all 595 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>