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

[FilterScript] SAMP Hold studio (repost, original by Slice)

$
0
0
Since the original download link is dead, i decided to repost the amx (i still have it)
I will not make any updates, just repost the download link so anyone can download it.
Sadly, i don't have the .pwn anymore. This is the original amx, you just load it on localhost.

Original topic: https://forum.sa-mp.com/showthread.php?t=182317

Download(amx):

Attached Files
File Type: amx hold.amx (289.8 KB)

[FilterScript] 1 script with 6 DM Pack

$
0
0
Hello Everyone
Introducing DM's pack a simple DM's but it will be useful in your server some of this DM's interior are the same.

COMMANDS
- /zdm
-/sdm
- /assaultdm
- /afdm
-/cdm
-/rawdm

How to exit all deathmatches.
/leavedm to exit.


Hopefully I get a little reputation 8) ;)
Pastebin:https://pastebin.com/hQ7ZF8tP

[FilterScript] Admin System V.0.5

$
0
0
ADMIN SYSTEM

Credits Include:
a_samp : Kalcor
sscanf2 : maddinat0r
YSI\y_ini : corne
zcmd : Zeex
foreach : Kar
include Dini : Twisted_Insane

INTRODUCTION This is an admin system. It has 27 commands.
This is my first admin system and second filterscript.

Quote:

Features
(Features) /agoto, /slap, /report, /freeze, /unfreeze, /aget, /mute, /unmute, /ip, /spec, /god, /specoff

(Server Administrator) /kick, /vcolor, /repair, /aduty, /healme, /ban, /announce, /aexplode, /asetskin, /asetweather, /aclearchat««/slap, /report, /freeze, /unfreeze, /agoto, /aget, /mute, /unmute, /ip, /spec, /god, /specoff

(Server Owner) /banaka, /setadminlevel, /arestart, /gmx, /kick, /vcolor, /repair, /aduty, /healme, /ban, /announce, /aexplode, /asetskin, /asetweather, /aclearchat««/slap, /report, /freeze, /unfreeze, /agoto, /aget, /mute, /unmute, /ip, /spec, /god, /specoff

[SIZE="<font style="vertical-align: inherit;"><font style="vertical-align: inherit;">6</font></font>"]How to see admin cmds: /acmds [/SIZE]
Photos:


https://cdn.discordapp.com/attachmen...88/unknown.png

Download Here!

Pastebin :https://pastebin.com/p2nRDRg7

Reputation is the most appreciated

Thank you

[FilterScript] Car spawner V.0.1

[FilterScript] New Ryder drug House made by Ali

$
0
0
Hello all, I am new in this Forum don't know how to post but i am trying to post don't laugh guys
as you guys see the title i made house in grove street,
Ofcourse Ryder house located in LS Grove.
So Ryder house gives you Crack and Weed you can change the price for it from filterscript.
Crack fill players armour and Weed fills player HP. And it is best for RP server.
Screenshots:
Oppps i don't know how to upload it shit but don't worry guys its preety simple

Code:

// This is a comment

#define FILTERSCRIPT

#include <a_samp>

forward PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z);

#define COLOR_BLUELIGHTER 0x00BFFFAA
#define COLOR_FADE 0xE6E6E6E6
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000AA

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Ryder's Drug House by Ali Shan");
        print("--------------------------------------");
       
                                                      // RYDERS DRUG HOUSE enter
    AddStaticPickup(1254,23,2459.4539,-1690.9188,13.5453);
                                                  // RYDERS DRUG HOUSE exit
    AddStaticPickup(1254,23, 2454.717041,-1700.871582,1013.515197);
   
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}



public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/takecrack", cmdtext, true, 10) == 0) {
        new Float:PlayersArmour;
        GetPlayerArmour(playerid, PlayersArmour);

//Ryder's Drug house near grove
        if(PlayerToPoint(30.0, playerid, 2454.717041,-1700.871582,1013.515197)) {
            SetPlayerArmour(playerid, PlayersArmour + 10.0);
            SendClientMessage(playerid, COLOR_FADE, "Ryder: Ey here's yo crack homie");
            ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,0,0,0,0);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* You have gave $3000 to Ryder, and used the crack.");
            GivePlayerMoney(playerid, -3000);
            return 1;
        }
        SendClientMessage(playerid, COLOR_WHITE, "You are not at the drug house ! use /housedrugplace to find it.");
        return 1;
    }
    if (strcmp("/takeweed", cmdtext, true, 10) == 0) {
        new Float:PlayersHealth;
        GetPlayerHealth(playerid, PlayersHealth);
//Ryder's Drug house near grove
        if(PlayerToPoint(30.0, playerid, 2454.717041,-1700.871582,1013.515197)) {
            SetPlayerHealth(playerid, PlayersHealth + 10.0);
            SendClientMessage(playerid, COLOR_FADE, "Ryder: Ey here's yo weed homie");
            ApplyAnimation(playerid,"FOOD","EAT_Burger",4.1,0,0,0,0,0);
            SendClientMessage(playerid, COLOR_BLUELIGHTER, "* You have gave $2500 to Ryder, and used the weed.");
            GivePlayerMoney(playerid, -2500);
            return 1;
        }
        SendClientMessage(playerid, COLOR_WHITE, "You are not at the drug house ! use /drugplace to find it.");
        return 1;
    }
    if (strcmp("/enter", cmdtext, true, 10) == 0) {
        //Ryder's Drug house
        if(PlayerToPoint(10.0, playerid, 2459.4539,-1690.9188,13.5453)) {

            SendClientMessage(playerid, COLOR_FADE, "Ryder: Who da' fuck in my house !?");
            SendClientMessage(playerid, COLOR_RED, "* Ryder grabs his bat");
            SendClientMessage(playerid, COLOR_RED, "REMINDER: to exit ryder's drug house use /exit");
            SendClientMessage(playerid, COLOR_GREY, "___* * Welcome to Ryder's Drug house you can use crack/pot you'll have to buy it * *___");
            SendClientMessage(playerid, COLOR_GREY, "/takecrack(to use ryder's crack) /takeweed(to use ryder's weed)");
            SendClientMessage(playerid, COLOR_GREY, "[PRICE] Crack($3000) Weed($2500))");
// Ryder's interior
            SetPlayerPos(playerid,2454.717041,-1700.871582,1013.515197);
            SetPlayerInterior(playerid, 2);
            return 1;
        }
        }
        if (strcmp("/exit", cmdtext, true, 10) == 0) {
       
            //ryder's drug house exit
        if(PlayerToPoint(15.0, playerid, 2454.717041,-1700.871582,1013.515197)) {

//Ryder's drug house exit
            SetPlayerPos(playerid,2459.4539,-1690.9188,13.5453);
            SetPlayerInterior(playerid, 0);
            return 1;
        }
        }
       
        if (strcmp("/drughouse", cmdtext, true, 10) == 0) {

            SetPlayerCheckpoint(playerid, 2459.4539,-1690.9188,13.5453, 3.0);
        SendClientMessage(playerid, COLOR_BLUELIGHTER, " * * Drug house checkpoint was placed on your map, look on your map for a red blip then follow it * *");
                return 1;
    }
   
          if (strcmp("/drughelp", cmdtext, true, 10) == 0) {
                    SendClientMessage(playerid, COLOR_WHITE, "___* * Welcome to Ryder's Drug house you can use crack/pot you'll have to buy it * *___");
            SendClientMessage(playerid, COLOR_GREY, "/takecrack(to use ryder's crack) /takeweed(to use ryder's weed)");
            SendClientMessage(playerid, COLOR_GREY, "[PRICE] Crack($3000) Weed($2500))");
                  return 1;
    }
        return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(PlayerToPoint(15.0, playerid, 2459.4539,-1690.9188,13.5453)) {
        GameTextForPlayer(playerid, "~b~Ryder's crack house~w~ use /enter to enter", 5000, 3);
        return 1;
    }
   
    if(PlayerToPoint(15.0, playerid, 2454.717041,-1700.871582,1013.515197)) {
        GameTextForPlayer(playerid, "~b~/takecrack~w~ or ~b~/takeweed~w~ for drugs", 5000, 3);
        return 1;
    }
        return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
        return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
        return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        return 1;
}

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
        return 1;
}

public OnPlayerUpdate(playerid)
{
        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        return 1;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
        return 1;
}

public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    new Float:oldposx, Float:oldposy, Float:oldposz;
    new Float:tempposx, Float:tempposy, Float:tempposz;
    GetPlayerPos(playerid, oldposx, oldposy, oldposz);
    tempposx = (oldposx -x);
    tempposy = (oldposy -y);
    tempposz = (oldposz -z);
    if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi))) {
        return 1;
    }
    return 0;
}


First of all open this code in Pawno and Complite it, Second Paste it to your server Filterscript folder and set the name RydersDH, Third Goto your server.cfg Type on filter RydersDH and thats it then go in game and test it

I hope You like it guys If you like this post like it and plz someone comment down how to upload screenshot

[Map] Gas Station at FBI HQ Good for RP Servers My First map

$
0
0
Hello This is me Ali Shan.
So guys i map this Gas station its located in FBI HQ My first map plz don't laugh
SCREENSHOTS:




Code:

// OnGameModeInit

CreateObject(1686, 1633.3, -1695.4, 12.5, 0.0, 0.0, 0.0, 100); // object (petrolpumpnew) (1)
CreateObject(1686, 1633.3, -1692.3, 12.5, 0.0, 0.0, 0.0, 100); // object (petrolpumpnew) (2)
CreateObject(1686, 1633.2, -1689.4, 12.5, 0.0, 0.0, 0.0, 100); // object (petrolpumpnew) (3)
CreateObject(997, 1642.6, -1683.5, 18.0, 1.0, 358.0, 266.0, 100); // object (lhouse_barrier3) (1)
CreateObject(355, 1634.8, -1685.5, 12.8, 0.0, 0.0, 0.0, 100); // object (1)
CreateObject(3989, 1636.1, -1685.2, 17.8, 0.0, 0.0, 0.0, 100); // object (bonaplazagr_LAn) (1)
CreateObject(355, 1639.6, -1688.5, 19.4, 0.0, 358.0, 264.0, 100); // object (2)


// OnPlayerConnect

RemoveBuildingForPlayer(playerid, 3989, 1646.0078, -1662.7187, 8.09375, 71.31012); // removeWorldObject (bonaplazagr_LAn) (1)

[FilterScript] Roleplay Chat Like Local,Shout,Whisper,PM

$
0
0
Whats up guys i am back with new filter script its fully working for me
This is So simple to add it on your server its special for beginners who is new on Pawno i am also new but i like to share <3
So First of all You need this codes Open pawno and paste the codes and complite it, Set the name RPchats and save it then go to your server.cfg then you can see filterscipts type there "RPchats" and save it then run your Server and see

COMMANDS:
/l for local
/b for ooc
/do for everyone know.
/w whisper
/pm for personal msg
/m for megaphone

I forget to tell you one thing Here is a cmnd /m its mean megaphone everyone use this cmnd or if you wanna change it then goto your codes and change it to only factions
Code:

//
//
//  SA-MP Roleplay style chat module for Grand Larceny
//  (c) 2012 SA-MP Team
//  All rights reserved
//

#include <a_samp>
#include "../include/gl_common.inc"
#include "../include/gl_messages.inc" // <- contains all the main text/messaging functions

//---------------------------------------------

stock ProcessChatText(playerid, text[])
{
        new useindex=1;

    // Handle shouting prefix (!)
        if(text[0] == '!' && strlen(text) > 1) {
            if(text[1] == ' ') useindex++;
            TalkMessage(SHOUT_DISTANCE, playerid, "*shouts*", text[useindex]);
            return;
        }

        // Handle quiet prefix (#)
        if(text[0] == '#' && strlen(text) > 1) {
            if(text[1] == ' ') useindex++;
            TalkMessage(LOW_DISTANCE, playerid, "*quietly*", text[useindex]);
            return;
        }

        // Send to other players in range and fade
        TalkMessage(TALK_DISTANCE, playerid, "", text);
}

//---------------------------------------------

stock ProcessActionText(playerid, message[], actiontype)
{
    new ActionText[256+1];
    new ActionBubble[MAX_CHATBUBBLE_LENGTH+1];
    new PlayerName[MAX_PLAYER_NAME+1];

    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));

        if(actiontype == ACTION_DO) {
                format(ActionText, 256, "* %s ((%s))", message, PlayerName);
                format(ActionBubble, MAX_CHATBUBBLE_LENGTH, "* (( %s ))", message);
        } else {
            format(ActionText, 256, "* %s %s", PlayerName, message);
            format(ActionBubble, MAX_CHATBUBBLE_LENGTH, "* %s", message);
        }
       
    LocalMessage(ACTION_DISTANCE, playerid, ACTION_COLOR, ActionText);
          SetPlayerChatBubble(playerid, ActionBubble, ACTION_COLOR, ACTION_DISTANCE, CHAT_BUBBLE_TIME);
}

//---------------------------------------------

new gOOCDisabled = false;

stock GlobalOOCMessage(playerid, message[])
{
        new msg[256+1];
        new PlayerName[MAX_PLAYER_NAME+1];

        if(gOOCDisabled) {
                CmdErrorMessage(playerid, "The OOC channel is not enabled right now");
                return;
        }

        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(msg, 256, "(( %s: %s ))", PlayerName, message);

        for(new i = 0; i < MAX_PLAYERS; i++) { // for every player
                if(IsPlayerConnected(i)) { // Todo: check if player accepts occ
                    PlayerMessage(i, OOC_COLOR, msg);
                }
        }
}

//---------------------------------------------

stock ToggleOOC(playerid)
{
        if(IsPlayerAdmin(playerid)) {
            // toggle it
            if(gOOCDisabled) gOOCDisabled = false;
                else gOOCDisabled = true;
               
            if(!gOOCDisabled) {
                GlobalMessage(GENERAL_COLOR, "{D0D0D0}[ooc] channel is {80CC80}enabled");
                } else {
                    GlobalMessage(GENERAL_COLOR, "{D0D0D0}[ooc] channel is {CC8080}disabled");
                }
        } else {
            CmdErrorMessage(playerid, "Your admin level isn't high enough to change this");
        }
}

//---------------------------------------------

stock ProcessLocalOOC(playerid, message[])
{
        new new_message[256+1];
        new PlayerName[MAX_PLAYER_NAME+1];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(new_message, 256, "%s (( %s ))", PlayerName, message);
        LocalMessage(TALK_DISTANCE, playerid, LOCAL_TALK_COLOR, new_message);
}

//---------------------------------------------

stock ProcessMegaphone(playerid, message[])
{
        // Todo: add permissions on megaphone usage
          new new_message[256+1];
        new PlayerName[MAX_PLAYER_NAME+1];
        GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
        format(new_message, 256, "(megaphone) %s >> %s", PlayerName, message);
        LocalMessage(MEGAPHONE_DISTANCE, playerid, MEGAPHONE_COLOR, new_message, 1);
}

//---------------------------------------------

stock ProcessWhisper(playerid, toplayerid, message[])
{
        new PlayerName[MAX_PLAYER_NAME+1];
        new ToPlayerName[MAX_PLAYER_NAME+1];
        new PmMessage[256+1];
        GetPlayerName(playerid,PlayerName,sizeof(PlayerName));
        GetPlayerName(toplayerid,ToPlayerName,sizeof(ToPlayerName));
        format(PmMessage, sizeof(PmMessage), ">> %s(%d): %s", ToPlayerName, toplayerid, message);
        PlayerMessage(playerid, WHISPER_COLOR, PmMessage);
        format(PmMessage, sizeof(PmMessage), "** %s(%d): %s", PlayerName, playerid, message);
        PlayerMessage(toplayerid, WHISPER_COLOR, PmMessage);
        PlayerPlaySound(toplayerid, 1085, 0.0, 0.0, 0.0);
}

//---------------------------------------------

stock ProcessChatCommands(playerid, cmdtext[])
{
    new cmd[256+1];
        new message[256+1];
        new        tmp[256+1];
        new        idx;

        cmd = strtok(cmdtext, idx);

    // Action commands
        if(!strcmp("/me", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "/me [action]");
                        return 1;
                }
                ProcessActionText(playerid, message, ACTION_ME);
                return 1;
        }
        if(!strcmp("/do", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "/do [action]");
                        return 1;
                }
                ProcessActionText(playerid, message, ACTION_DO);
                return 1;
        }
        // Talk commands

        // /low
        if(!strcmp("/l", cmd, true) || !strcmp("/low", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "(/l)ow [text]");
                        return 1;
                }
                TalkMessage(LOW_DISTANCE, playerid, "*quietly*", message);
                return 1;
        }
        // /shout
        if(!strcmp("/s", cmd, true) || !strcmp("/shout", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "(/s)hout [text]");
                        return 1;
                }
                TalkMessage(SHOUT_DISTANCE, playerid, "*shouts*", message);
                return 1;
        }
        // /b (local ooc)
        if(!strcmp("/b", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "/b [text]");
                        return 1;
                }
            ProcessLocalOOC(playerid, message);
                return 1;
        }
        // /megaphone
        if(!strcmp("/m", cmd, true) || !strcmp("/megaphone", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "(/m)egaphone [text]");
                        return 1;
                }
                ProcessMegaphone(playerid, message);
                return 1;
        }
        // Global OOC /o and /ooc
        if(!strcmp("/o", cmd, true) || !strcmp("/ooc", cmd, true))
        {
              message = strrest(cmdtext,idx);
              if(!strlen(message)) {
                        CmdUsageMessage(playerid, "(/o)oc [text]");
                        return 1;
                }
                GlobalOOCMessage(playerid, message);
                return 1;
        }
        // Toggle the OOC channel /togooc
        if(!strcmp("/togooc", cmd, true))
        {
                    ToggleOOC(playerid);
                return 1;
        }
        // /whisper /pm
        if(!strcmp("/w", cmd, true) || !strcmp("/whisper", cmd, true) || !strcmp("/pm", cmd, true))
        {
                tmp = strtok(cmdtext,idx);

                if(!strlen(tmp)) {
                        CmdUsageMessage(playerid, "(/w)hisper [playerid/PartOfName] [whisper text]");
                        return 1;
                }
               
                new toplayerid = ReturnUser(tmp);

            if(toplayerid == RETURN_USER_MULTIPLE) {
                        CmdErrorMessage(playerid, "Multiple matches found for [name]. Please narrow the search.");
                        return 1;
                }
                if(toplayerid == RETURN_USER_FAILURE || !IsPlayerConnected(toplayerid)) {
                    CmdErrorMessage(playerid, "That player isn't connected right now.");
                        return 1;
                }
               
                message = strrest(cmdtext,idx);
                           
                if(!strlen(message)) {
                        CmdUsageMessage(playerid, "(/w)isper [playerid/PartOfName] [whisper text]");
                        return 1;
                }

                if(IsPlayerConnected(toplayerid)) {
                    ProcessWhisper(playerid, toplayerid, message);
                }
               
                return 1;
        }


        return 0;
}

//---------------------------------------------

public OnPlayerText(playerid, text[])
{
        ProcessChatText(playerid, text);
        return 0;
}

//------------------------------------------------

public OnPlayerCommandText(playerid, cmdtext[])
{
        if(ProcessChatCommands(playerid,cmdtext)) {
            return 1;
        }
        return 0;
}

//---------------------------------------------

If you like my Filterscript then please +REP ME
Thanks to everyone.

[FilterScript] PM chat useful for all server

$
0
0
Hy whats up guys i am back with another creation
in this creation i am gonna give you PM chat it useful for all server i think its work like thi /pm[playerid][text].

COMMANDS:
/PM
/R its mean you can replay pm without typing /pm


CODES
Code:

// This is a comment
// uncomment the line below if you want to write a filterscript
//#define FILTERSCRIPT

#include <a_samp>
#include <zcmd>
#define Versio "1.0"
#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" PM System by Ali Shan");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

#else
new PMEnabled[MAX_PLAYERS];

main()
{
        print("\n----------------------------------");
        print(" Blank Gamemode by your name here");
        print("----------------------------------\n");
}

#endif

public OnGameModeInit()
{
        return 1;
}

public OnGameModeExit()
{
        return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
        return 1;
}

public OnPlayerConnect(playerid)
{
    PMEnabled[playerid] = 1;
        return 1;
}
CMD:togpm( playerid, params[ ] )
{
    if(isnull(params)) return SendClientMessage(playerid, 0xEDC71CFF, "CMD: /togpm [on/off]");
    if(strcmp(params, "on", true ) == 0 )
    {
        PMEnabled[playerid] = 1;
        SendClientMessage(playerid, 0x00FF00FF, "You have unblocked your Personal Messaging arrival.");
    }
    else if( strcmp( params, "off", true ) == 0 )
    {
        PMEnabled[playerid] = 0;
        SendClientMessage(playerid, 0xAA3333AA, "You have blocked Personal Messages from arriving.");
    }
    else SendClientMessage(playerid, 0xEDC71CFF,"CMD: /togpm [on/off]");
    return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
   
        return 1;
}

public OnPlayerSpawn(playerid)
{
        return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
        return 1;
}

public OnVehicleSpawn(vehicleid)
{
        return 1;
}

public OnVehicleDeath(vehicleid, killerid)
{
        return 1;
}

public OnPlayerText(playerid, text[])
{
        return 1;
}

public OnPlayerCommandText(playerid, cmdtext[])
{

        return 0;
}

public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
        return 1;
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
        return 1;
}

public OnPlayerStateChange(playerid, newstate, oldstate)
{
        return 1;
}

public OnPlayerEnterCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveCheckpoint(playerid)
{
        return 1;
}

public OnPlayerEnterRaceCheckpoint(playerid)
{
        return 1;
}

public OnPlayerLeaveRaceCheckpoint(playerid)
{
        return 1;
}

public OnRconCommand(cmd[])
{
        return 1;
}

public OnPlayerRequestSpawn(playerid)
{
        return 1;
}

public OnObjectMoved(objectid)
{
        return 1;
}

public OnPlayerObjectMoved(playerid, objectid)
{
        return 1;
}

public OnPlayerPickUpPickup(playerid, pickupid)
{
        return 1;
}

public OnVehicleMod(playerid, vehicleid, componentid)
{
        return 1;
}

public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
{
        return 1;
}

public OnVehicleRespray(playerid, vehicleid, color1, color2)
{
        return 1;
}

public OnPlayerSelectedMenuRow(playerid, row)
{
        return 1;
}

public OnPlayerExitedMenu(playerid)
{
        return 1;
}

public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
{
        return 1;
}

public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
        return 1;
}

public OnRconLoginAttempt(ip[], password[], success)
{
        return 1;
}

public OnPlayerUpdate(playerid)
{

        return 1;
}

public OnPlayerStreamIn(playerid, forplayerid)
{
        return 1;
}

public OnPlayerStreamOut(playerid, forplayerid)
{
        return 1;
}

public OnVehicleStreamIn(vehicleid, forplayerid)
{
        return 1;
}

public OnVehicleStreamOut(vehicleid, forplayerid)
{
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
    if(dialogid == 0 && response == 1)
    {
            new pName[MAX_PLAYER_NAME],gName[MAX_PLAYER_NAME],string[128];
            new giveplayerid = GetPVarInt(playerid,"ClickedPlayer");
            GetPlayerName(playerid,pName,sizeof pName);
            GetPlayerName(giveplayerid,gName,sizeof gName);
            format(string,sizeof string,"{B0B0B0}[PM]{FF0000}From {B0B0B0}%s{FF0000}: {E3BB19}%s",pName,inputtext);
            SendClientMessage(giveplayerid,0xFFE615D4,string);
            format(string,sizeof string,"{B0B0B0}[PM]{FF0000}Sent to {B0B0B0}%s{FF0000}: {E3BB19}%s",gName,inputtext);
            SendClientMessage(playerid,0xFFE615D4,string);
            return 1;
    }
        return 0;
}

public OnPlayerClickPlayer(playerid, clickedplayerid, source)
{
    new pName[MAX_PLAYER_NAME], string[170],playerid2;
    if(PMEnabled[playerid2] == 0) return SendClientMessage(playerid, 0xAFAFAFAA, "{FF0000}[PM]{AFAFAF}This player turn off his PM!");
        SetPVarInt(playerid,"ClickedPlayer",clickedplayerid);
    GetPlayerName(clickedplayerid,pName,sizeof(pName));
        format(string,sizeof(string),"{FFFFFF}Type message which will be send to {E01B1B}%s{1BB5E0}(%d)",pName,clickedplayerid);
        ShowPlayerDialog(playerid,0,DIALOG_STYLE_INPUT,"{FFFFFF}PM",string,"Send","Cancel");
        return 1;
}

Compile it first then use it i hope you understand me. make a name in filterscript PM then setname in server.cfg in filterscript line: PM Then save it.
And if you like my creation +rep me .
Thanks.

[FilterScript] AFK System usefull for RP server

$
0
0
Hy whats up guys i am back again with new creation.
So, this is a AFK System made by me its based on /afk when you type /afk you automaticaly goes to /afk and spawn on VIP place i mean spawn n interior made by me.
So, If wanna be unafk then just type /back Then you go back to your Last Location.
I hope you guys like my creation.

CODES:
Code:

/*
BB AFK System
By Ali Shan
Version v0.1
*/

//Includes
#include <a_samp>
#include <zcmd>

//Define Colours
#define green 0xFF0000
#define red 0xFF0000FF
#define orange 0xFF9900AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_RED 0xFF0000AA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_YELLOW 0xFFFF00AA

new AFK[MAX_PLAYERS];
new Float:xpos,Float:ypos,Float:zpos;
new Float:hp[MAX_PLAYERS];
new Float:armour[MAX_PLAYERS];

CMD:afk(playerid, params [])
    {
        if(AFK[playerid] == 1)
        {
        return SendClientMessage(playerid,COLOR_RED,"You are Already AFK.");
        }
        TogglePlayerControllable(playerid, 0);
        new string[64], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
        GetPlayerPos(playerid,xpos,ypos,zpos);
        GetPlayerHealth(playerid,hp[playerid]);
        GetPlayerArmour(playerid,armour[playerid]);
        AFK[playerid] = 1;
        SetPlayerHealth(playerid,100000);
        SetPlayerArmour(playerid,100000);
        SetPlayerInterior(playerid,17);
        SetPlayerPos(playerid, 486.890991,-14.522799,1000.679687);
        GameTextForPlayer(playerid,"~G~ You're ~P~Now ~Y~AFK",3000,3);
        ApplyAnimation(playerid,"DANCING","dance_loop", 4.1,1,1,1,1,1);
        format(string, sizeof(string), "%s {33CCFF}is now {33AA33}Away From His Keyboard.",pName);
        SendClientMessageToAll(red,string);
        SendClientMessage(playerid, COLOR_YELLOW, "[AFK] - When you come back, use /back!");
        return 1;
    }

CMD:back(playerid, params [])
    {
        if(AFK[playerid] == 0)
        {
        return SendClientMessage(playerid,COLOR_RED,"You Must be AFK to use this Command.");
        }
        new string[129], pName[MAX_PLAYER_NAME];
        GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
        AFK[playerid] = 0;
        SetPlayerPos(playerid,xpos,ypos,zpos);
        SetPlayerHealth(playerid,hp[playerid]);
        SetPlayerArmour(playerid,armour[playerid]);
        ClearAnimations(playerid);
        SetPlayerInterior(playerid,0);
        GameTextForPlayer(playerid,"~G~ Well~P~Come ~Y~Back",3000,3);
        format(string,sizeof string, "%s {33CCFF}is no longer {33AA33}Away From His Keyboard.",pName);
        SendClientMessageToAll(red,string);
        TogglePlayerControllable(playerid, 1);
        SendClientMessage(playerid, COLOR_WHITE, "Welcome Back!");
        return 1;
    }

CMD:afkhelp(playerid, params [])
{
    SendClientMessage(playerid, red, "___________________________BB-AFK System Help___________________________");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "To Get in AFK Status Use: /AFK ");
    SendClientMessage(playerid, COLOR_LIGHTBLUE, "To Get Back Into the normal status ( not afk any more ) Use: /Back");
    SendClientMessage(playerid, red, "_________________________________________________________________________");
    return 1;
}

public OnPlayerText(playerid,text[])
{
  if(AFK[playerid] == 1) return  SendClientMessage(playerid, red, "You Cannot Talk, while You're AFK."), 0;
  return 1;
}

Or if you want any help with scripting Read my signature.
Or if you like my creation +REP me.
THANKS TO ALL.

[FilterScript] Mysql Admin System V.1

$
0
0
My AdminSystem V.0.5 Old photo: https://cdn.discordapp.com/attachmen...88/unknown.png

ADMIN SYSTEM V.1

What's new? Added mysql ban system, achat (@), Added Anti-Score and Anti-Money Hack!
Improved some codes , Added /stats command, Added Anti-Spam.

/acmds to see all admin commands.

Quote:

(Level 1 Helper) /slap, /report, /freeze, /achat (@) /unfreeze, /agoto, /aget, /mute, /unmute, /ip, /spec, /god, /specoff««")
Quote:

(Level 2 Server Administrator)/kick, /vcolor, /repair, /aduty, /healme, /ban, /unban, /announce, /aexplode, /asetskin, /asetweather, /aclearchat/slap, /report, /freeze, /achat (@) /unfreeze, /agoto, /aget, /mute, /unmute, /ip, /spec, /god, /specoff««");
Quote:

(Level 3 Server Owner)/banaka /setadminlevel, /gmx /kick, /vcolor, /repair, /aduty, /healme, /ban, /unban, /announce, /aexplode, /asetskin, /asetweather, /aclearchat/slap, /report, /freeze, /achat (@) /unfreeze, /agoto, /aget, /mute, /unmute, /ip, /spec, /god, /specoff««")
Pastebin: https://pastebin.com/hdjkMLT3

Photos: https://cdn.discordapp.com/attachmen...93/unknown.png
https://cdn.discordapp.com/attachmen...03/unknown.png

REPUTATION IS THE MOST APPRECIATED THANK YOU SO MUCH

Thanks for reading.

[FilterScript] [MySQL R41-4] Dynamic Update System

$
0
0
Introduction
Hello, this is a new system which I have been working on for like 30 minutes, I use this on my own upcoming server and I just find it useful. Basically, you are able to add updates and changelog in-game, without having to re-edit the script every time you change your code or a system.

How to use it?
Download or clone the repository on GitHub, and compile the code. There are a few includes you need though.

Commands

There are currently three commands, two admin commands and a player command.

- /addupdate [status] [text] - RCON Admins
- /removeupdate [updateid] - RCON Admins
- /updates - Player Command

Credits
SA-MP team for a_samp
BlueG / maddinat0r for a_mysql
Emmet_ for easyDialog
Zeex for zcmd
Y_Less / maddinat0r for sscanf2

Screenshots
Here's a list of screenshots:

https://imgur.com/a/fdIbGIs

Download
GitHub
Pastebin

Enjoy it.

[FilterScript] Kill The President Event @ SiaReyes

$
0
0
Kill The President





Description:

About the event: Kill The President will have a president and 3 guards with him protecting him from getting killed.
Others that join the event will try to kill the president and once the president gets killed,
the murderer will receive his/her prize.

Vehicles: Presidents Team = Sultan , Killer team = Rancher.
Location: Las Venturas.



Download Link: Pastebin

Reputation is the most appreciated

[FilterScript] TD Inventory system Made in China(No Read/Save)

$
0
0
TD Inventory system
Made in China:p

It is easy to write and save by yourself.
I wrote an enumeration.

I only wrote about using the item.
Discarding items is also very simple, just use CreateObject.:○



Click GitHub

Most of my GITHUB is Chinese Server or FilterScript.:p

This is my first work

My English is not very good. So sorry...

[FilterScript] NotifyTD - Inform players with style

$
0
0
NotifyTD - Inform players with style

So, i had some free time and decided to make this. It's a textdraw where you can use it to inform players about everything.

As GameText, you can use colors and ~n~ for new line.

Some examples.

This:

pawn Code:
InformPlayer(playerid, "~w~Hey, this is a ~r~t~w~e~y~s~b~t~g~!", 3500);

Turns into this:



As like GameTexts you can format it, so this:

pawn Code:
new name[MAX_PLAYER_NAME + 1], message[30];

GetPlayerName(playerid, name, sizeof(name));

format(message, sizeof(message), "~w~Hello %s!", name);
InformPlayer(playerid, message, 5000);

Turns into this:



And this is what happens when you split your information text in a new line:



Functions:

Currently there is only one function:

pawn Code:
InformPlayer(playerid, string[], time = 5000)

Well i guess there is nothing more to say about this simple filterscript.

Pastebin:

https://pastebin.com/02A3kP5K

Enjoy.

[FilterScript] How to Fix this All PRO SCRIPTER CAN YOU TEACH ME HOW


[FilterScript] Sonny's Ranking system [Based on Scores, Cash] + Extra: Ping

$
0
0
Description:

This is my first filterscript, made especially for sa-mp forum users. Hopefully it will be useful ^^


Rank Names:
Code:

    if(GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < 100) format(player, sizeof(player), "Newbie");
    else if(GetPlayerScore(playerid) >= 100 && GetPlayerScore(playerid) < 500) format(player, sizeof(player), "Junior Player");
    else if(GetPlayerScore(playerid) >= 500 && GetPlayerScore(playerid) < 5000) format(player, sizeof(player), "Regular Player");
    else if(GetPlayerScore(playerid) >= 5000 && GetPlayerScore(playerid) < 10000) format(player, sizeof(player), "Senior Player");
    else if(GetPlayerScore(playerid) >= 10000 && GetPlayerScore(playerid) < 50000) format(player, sizeof(player), "Loyal Player");
    else if(GetPlayerScore(playerid) >= 50000 && GetPlayerScore(playerid) < 100000) format(player, sizeof(player), "Hero");
    else if(GetPlayerScore(playerid) >= 100000) format(player, sizeof(player), "Godlike");


Social Status:

< 1000000: Poor
> 1000000: Millionaire


Screenshot:




Download:

https://pastebin.com/5KN9dPXf


Credits:

* SA-MP
* SonnyGamer

[FilterScript] GPS Bullet v0.9

$
0
0
GPS Bullet 0.9
By Jiizutin Kiru (MicroKyrr)

This is my second FS, I'm certain there are inefficient codes I've written. I went back to scripting a week ago (I left SA:MP in 2016) and saw the opportunity to make this. Criticism is much appreciated

Description
The title says it all, GPS bullet. This is made for Law Enforcers to be used. Just shoot someone and you'll be able to track them within the remaining battery life. (Default is 120 minutes or 2 hours) the only command here is /gpsb

** You can choose two weapons for your GPS bullet, sniper or silenced pistol.
** You can display/hide the bullet position and the battery information.
* Bullet on Vehicle soon >>> (( REFERENCE : censored :roll: /watch?v=qmqHrgKI1ak ))

Dependencies

https://forum.sa-mp.com/showthread.php?t=537468 // Progress2 by Southclaw
https://forum.sa-mp.com/showthread.php?t=91354 // Zcmd by Zeex (or Yasha's izcmd)

Thanks

SA:MP Team
Bork (Infin1ty) for the code optimization
Southclaw for his progress include
Zeex for the Zcmd processor

Download : Github

Attached Files
File Type: mp4 [SAMP] GPS Bullet 0.9 BETA.mp4 (19.04 MB)

[FilterScript] Lucky7 System.

[FilterScript] Coordinates Textdraw

[FilterScript] Gadmin-BsLouay Admin System ! " Great VIP system + Event System and More... !

$
0
0
Gadmin-BsLouay ADMIN System 2019

Last Updated: 23 April, 2019



i know that all of you asking now why gadminv22-BsLouay Admin System, simply i fixed all the bugs on Gadmin and i added another VIP system and register system etc....

Information/Features

- Professional Spectating System (With TextDraw)
- this file script Working at the latest SAMP version.
- Added New VIP System (With three Account Types) - Silver, Gold and Premium!
- Added System to simple change account commands (Login,Register and Changepass!
- Added Fighting Styles /setstyle
- Fixed aduty script
- created Teleport System (You will like the New One)
- Admins MultColors in /acmds Command!
- Warn System (Ban after the specified number of warnings)
- Added Alot of dialogs.
- Fixed some things to improve performance.
- added GPS System
- added Lock/Unlock Server
- added radio system /radio
- added Cage System!
- Highest Administrators is immune from all commands
- Announcements System! (Simple to Config Announces in FS)
- When AdminScript is Started, Show All Configurations in Console!
- added event Sytem


Admin Commands, /acmds

Level 1:

/spec, /specoff /adminarea,/weaps,/aduty,/addnos,/warn
/flip,/spawn,/goto,/kick,/asay,/ban,/afix,/reports,/slap,/explode
/cage,/uncage,/gcage,/get,/aweapon,/sv,/cc,/searchban,/veh,/vcol
/ajetpack,/specv


Level 2:

/ip,/setweather,/settime,/aweaps,/amsg,/muted,/jailed
/(un)ban,/vehhp,/aeject,/carpaint,/givecar,/akill,/jail,/fakeban
/unjail,/mute,/unbanip,/mute,/searchipban,/unmute/setskin
/aheal,/armour,/setinterior,/setworld,/disarm,/tune


Level 3:

/ann,/forceclass,/healall,/armourall,/fightstyle,/setarmour,/freeze
/unfreeze,/giveweapon,/destroycar,/giveallhelmet,/giveallscore,/giveallcash
/setalltime,/setallweather,/giveallweapon,/startevent,/geevent
/endevent,/eventweapon,/createevent


Level 4:

/ann2,/givecash,/givescore,/banip,/fakedeath,/muteall,/unmuteall
/rac,/cleardwindow,/createobject,/destroyobject,/editobject,/ejectall/setping


Level 5:

/atele,/resetcash,/getall,/setcolor,/setcash,/setscore,/setkills,/setdeaths
/freezeall,/lock,/unlock,/unfreezeall,/killall,/disarmall,/removeuser
/fakecmd,/fakechat,/setlevel,/setdonor


Admin System ScreenShots

/acmds



Register System

You have to play 10 mins in the server to use /register



Event System

step1: /startevent
step2: /createevent [event name ] Exp: ~w~Avoid The Plane
You have to wait
step3: /getevent
the event sys will disarm the players and set them skin id 36
step3: use /ann , Exp: No anims etc... or Good luck etc...
Step4: when the event end make sure to end it /endevent




Lock Unlock Server



Other:

/Giveallcash (max 15000$ )
/giveallscore (max 10 score)
etc..




Vip System (Donor System)

/dcmds



/dv



/dh or /dr



MORE !



How To Make Yourself Admin?

Step1: Connect to your server
Step2: Login to your RCON (/rcon login [your rcon password])
Step3: Type /setlevel [Yourid] 5 .


Installation

  • Download the file!
  • Unzip the Files! (Recommended use Winrar)
  • Copy all folders 'filterscripts,pawno,scriptfiles,plugins'
  • Replace the folders of your server for them.
  • Open 'Server.cfg'
  • Go to in line 'filterscripts'
  • Add 'gadminv22-BsLouay' (filterscripts gadminv22-BsLouay)
  • Then add sscanf streamer MapAndreas in plugins line
  • Save the file!
  • Done!


Credits:

  • SA-MP team
  • Gammix
  • BsLouay
  • Zeex
  • Yashas
  • Jochemd


Download





if you liked this, so Make Sure to +REP me & Gammix
Viewing all 595 articles
Browse latest View live


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