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

[FilterScript] Robbery System and Car Dealership

$
0
0
Hey guys, i don't know how to script but somehow by mistake i made a gamemode, i am a noob i hate my self.
But can you guys please make a Simple Shop Robbery System and Car Dealership within Los Santos? Please
i will be very thankful. Forgive my injured English XD

Car Dealership Should have:
Infernus: 250k
Bullet: 200k
Super GT: 200k
Turismo: 200k
Elegy: 90k
Huntley: 80k
NRG: 60k
Sultan: 50k
Voodoo: 40k
Slam van: 40k
Premier: 20k
Bobcat: 10k
FCR-900: 9k
PCJ: 9k
Faggio: 5k


and We should get like 500$ in small shops and 5000$ in Banks or Big Shops
Please Guys thanks alot

[FilterScript] Basic Commands (For Beginners)

$
0
0
Basic Commands:


Today i script an Basic commands for beginners it's good for DM Servers and Freeroam Servers, i hope you will like it, it's easy and basic one i just work on it 15 minutes.
You are free to edit it and change Crédits and you can change the Website on /Url Command


Code:


Code:

//*************************************************************************************//
//                          Super Basic Commands                                    *
//                              TuNiSiE                                              *
//*************************************************************************************

#include <a_samp>

#if defined FILTERSCRIPT

public OnFilterScriptInit()
{
        print("\n--------------------------------------");
        print(" Basic Commands by TuNiSiE");
        print("--------------------------------------\n");
        return 1;
}

public OnFilterScriptExit()
{
        return 1;
}

#endif

public OnPlayerCommandText(playerid, cmdtext[])
{
        if (strcmp("/Kill", cmdtext, true, 10) == 0)
        {
                SetPlayerHealth(playerid,0); // Kill your self
                return 1;
        }
        if (strcmp("/Wpack", cmdtext, true, 10) == 0)
        {
                GivePlayerWeapon(playerid,24,1000); // Give Player Deagle
                GivePlayerWeapon(playerid,9,1); // Give Player Chainsaw
                GivePlayerWeapon(playerid,25,1000); // Give Player Shotgun
                GivePlayerWeapon(playerid,28,1000); // Give Player Micro SMG
                GivePlayerWeapon(playerid,31,1000); // Give Player M4
                return 1;
        }
        if (strcmp("/Rules", cmdtext, true, 10) == 0)
        {
                SendClientMessage(playerid,0xFF0000FF,"Here you can find some Server Rules:");
                SendClientMessage(playerid,0xFF0000FF,"- Do not Insult/Spam/Flood.");
                SendClientMessage(playerid,0xFF0000FF,"- Respect all players/admins.");
                SendClientMessage(playerid,0xFF0000FF,"- Do not talk about Website/Servers.");
                SendClientMessage(playerid,0xFF0000FF,"- Do not abuse Bugs/Glitches.");
            SendClientMessage(playerid,0xFF0000FF,"- Do not use any Hacks/Cheats/Celo mods.");
                return 1;
        }
        if (strcmp("/Help", cmdtext, true, 10) == 0)
        {
                SendClientMessage(playerid,0xFF0000FF,"Here you can find Server help:");
                SendClientMessage(playerid,0xFF0000FF,"- Welcome to our server here!.");
                SendClientMessage(playerid,0xFF0000FF,"- Here you free to deathmatch everyone!");
                SendClientMessage(playerid,0xFF0000FF,"- Rule The Streets with your guns.");
                SendClientMessage(playerid,0xFF0000FF,"- And have Fun with friends.");
            SendClientMessage(playerid,0xFF0000FF,"- Enjoy your stay with us.");
                return 1;
        }
        if (strcmp("/Cmds", cmdtext, true, 10) == 0)
        {
                SendClientMessage(playerid,0xFF0000FF,"Here you can find Server Commands:");
                SendClientMessage(playerid,0xFF0000FF,"- /Kill - Kill yourself.");
                SendClientMessage(playerid,0xFF0000FF,"- /Wpack - Get a weapon pack.");
                SendClientMessage(playerid,0xFF0000FF,"- /Help - Read server Help.");
                SendClientMessage(playerid,0xFF0000FF,"- /Rules - Read server Rules.");
            SendClientMessage(playerid,0xFF0000FF,"- /Url - Server Website.");
                return 1;
        }
        if (strcmp("/Url", cmdtext, true, 10) == 0)
        {
                SendClientMessage(playerid,0xFF0000FF,"URL: www.samp.com ");
                return 1;
        }
        return 0;
}



How to install?:
- Open Pawno
- Make a new Page
- Copy the Code
- Paste it on your new page
- Save it with name " Bcmds "
- Go to your server.cfg
- Add " Bcmds " to Filterscripts
- And have Fun!



This is my first FS I hope you like it!

[FilterScript] Inventory & Items - Textdraw menu

$
0
0
Inventory & Items
This is a simple(maybe!) inventory system you can use in a survival or hunger game sort of server. I guess its bugs free so far from the testing i did. Its very easy to use and quiet modern. I wanted to use this for my new hunger games mode, but i guess i am taking a break right now so this might be helpful for someone!

Some core features:
  • Press "Y" to open inventory!
  • Scroll bar for left menu i.e. list of items near the player (on floor). (yea, i'll fix scroll bar soon)
  • Custom item positioning which saves with the type, so if you need a specific rotation for a specific item type, you can simply /edititem and all the items with that type will have new rotation set.
  • Animations upon picking and droping items.
  • Maximum 24 items a player can pick, you can decrease this from script (only recommended for scripters, you might have to change textdraws positions etc.) - for quick way, only decrease the rows limit.
  • The left and right menu are completely dynamic, if a player picks an item from your ground, that item will disappear from your textdraw list!
  • Double click on left menu items to quick pick them up.
  • Double click on right menu items to quick use them.
  • Press ESC to close the inventory.

Creating items guide
  • Login as RCON admin
  • Type /newitem, and create a new item
  • (*Optional) If you want to adjust the rotation or Z push, type /edititem and select the item you recently added.
  • Now the item has been created and is in your created item history. In order to duplicate that item, type /additem and select the item from the list, thats it!

Screenshot


Required Libraries & Credits
Streamer plugin - http://forum.sa-mp.com/showthread.php?t=102865
ColAndreas plugin - http://forum.sa-mp.com/showthread.php?t=586068
Sscanf2 plugin - http://forum.sa-mp.com/showthread.php?t=602923
I-ZCMD include - http://forum.sa-mp.com/showthread.php?t=576114
Dialogs include - http://forum.sa-mp.com/showthread.php?t=570213
EasyDialog include (by Emmet_) - https://github.com/Agneese-Saini/SA-...easydialog.inc

Download
https://github.com/Agneese-Saini/SA-.../inventory.pwn

[FilterScript] New!! Super Login System For RolePlay GameMode

$
0
0
Register & Login System By HoussamMaroc
Register By TextDraw







PHP Code:

#include <a_samp>
#include <zcmd>
#include <abc_Dini>
#include <sscanf2>


#pragma unused strtok




#define pX 1234.00
#define pY 1234.00
#define pZ 8.00



#define Get(%0,%1,%2); new %2[128];GetPlayer%0(%1,%2,sizeof(%2));
#define Get2(%0,%1,%2,%3); new Float:%1;new Float:%2;new Float:%3;GetPlayerPos(%0,%1,%2,%3);


forward ShowPassword(playerid);
forward Spawned(playerid);


enum pInfo
{
    
PassShow,
    
LFinished,
    
Registered,
    
Skin,
    
Pass[500],
}
enum
{
    
DIALOG_LOGIN5000,
    
DIALOG_LFINISHED,
    
DIALOG_SKIN,
    
DIALOG_LOGIN2,
    
DIALOG_LOGIN3,
    
DIALOG_FLOGIN,
}
new 
PlayerInfo[MAX_PLAYERS][pInfo];
new 
Text:Textdraw[MAX_PLAYERS][100];
new 
string2[128];
new 
string3[128];
new 
lskin[256],money[256],Float:dX,Float:dY,Float:dZ;

public 
OnFilterScriptInit()
{
    print(
"\n----------------------------------------------");
    print(
"-----Register System By HoussamMaroc-----");
    print(
"----------------------------------------------\n");
    return 
1;
}
public 
OnFilterScriptExit()
{
    return 
1;
}
public 
OnPlayerRequestClass(playeridclassid)
{
    if (
IsPlayerNPC(playerid))
        return 
1;
        
    
SetTimerEx("spec",74,false,"i",playerid);
    return 
1;
}

forward spec(playerid);
public 
spec(playerid)
{
    
SelectTextDraw(playerid,51);
    return 
TogglePlayerSpectating(playerid,true);
}

public 
OnPlayerConnect(playerid)
{
    
Get(Name,playerid,plname);
    
format(string3,sizeof string3,"/%s.ini",plname);

    if(
fexist(string3))
    {
        
ShowPlayerDialog(playeridDIALOG_LOGIN3,DIALOG_STYLE_PASSWORD,"{00ff00}Enter Your {0000ff}Password","{00ff00}You Aready Register Please Login","Login","Cancel");
        
money dini_Get(string3,"Cash");
        
GivePlayerMoney(playerid,strval(money));
        return 
0;
    }
    else
    {
   
Textdraw[playerid][0] = TextDrawCreate(209.000000162.960006"LD_POKE:cd9c");TextDrawLetterSize(Textdraw[playerid][0], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][0], 198.000000106.399978);TextDrawAlignment(Textdraw[playerid][0], 1);TextDrawColor(Textdraw[playerid][0], 107);TextDrawSetShadow(Textdraw[playerid][0], 0);TextDrawSetOutline(Textdraw[playerid][0], 0);TextDrawFont(Textdraw[playerid][0], 4);
   
Textdraw[playerid][1] = TextDrawCreate(208.000000169.119995"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][1], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][1], 199.000000, -33.599990);TextDrawAlignment(Textdraw[playerid][1], 1);TextDrawColor(Textdraw[playerid][1], 60);TextDrawSetShadow(Textdraw[playerid][1], 0);TextDrawSetOutline(Textdraw[playerid][1], 0);TextDrawFont(Textdraw[playerid][1], 4);
   
Textdraw[playerid][2] = TextDrawCreate(305.000000131.600021"Register");TextDrawLetterSize(Textdraw[playerid][2], 1.8264983.375200);TextDrawAlignment(Textdraw[playerid][2], 2);TextDrawColor(Textdraw[playerid][2], -16776961);TextDrawSetShadow(Textdraw[playerid][2], 0);TextDrawSetOutline(Textdraw[playerid][2], 1);TextDrawBackgroundColor(Textdraw[playerid][2], 41215);TextDrawFont(Textdraw[playerid][2], 0);TextDrawSetProportional(Textdraw[playerid][2], 1);
   
Textdraw[playerid][3] = TextDrawCreate(209.000000179.760009"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][3], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][3], 198.00000013.439987);TextDrawAlignment(Textdraw[playerid][3], 1);TextDrawColor(Textdraw[playerid][3], -2139062017);TextDrawSetShadow(Textdraw[playerid][3], 0);TextDrawSetOutline(Textdraw[playerid][3], 0);TextDrawFont(Textdraw[playerid][3], 4);
   
Textdraw[playerid][4] = TextDrawCreate(208.000000179.199996plname);TextDrawLetterSize(Textdraw[playerid][4], 0.4499991.600000);TextDrawAlignment(Textdraw[playerid][4], 1);TextDrawColor(Textdraw[playerid][4], -1);TextDrawSetShadow(Textdraw[playerid][4], 0);TextDrawSetOutline(Textdraw[playerid][4], 1);TextDrawBackgroundColor(Textdraw[playerid][4], 51);TextDrawFont(Textdraw[playerid][4], 1);TextDrawSetProportional(Textdraw[playerid][4], 1);
   
Textdraw[playerid][5] = TextDrawCreate(209.000000207.199996"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][5], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][5], 198.00000012.880004);TextDrawAlignment(Textdraw[playerid][5], 1);TextDrawColor(Textdraw[playerid][5], -2139062017);TextDrawSetShadow(Textdraw[playerid][5], 0);TextDrawSetOutline(Textdraw[playerid][5], 0);TextDrawFont(Textdraw[playerid][5], 4);TextDrawSetSelectable(Textdraw[playerid][5], true);
   
Textdraw[playerid][6] = TextDrawCreate(209.000000204.960006"Password");TextDrawLetterSize(Textdraw[playerid][6], 0.4499991.600000);TextDrawAlignment(Textdraw[playerid][6], 1);TextDrawColor(Textdraw[playerid][6], -1);TextDrawSetShadow(Textdraw[playerid][6], 0);TextDrawSetOutline(Textdraw[playerid][6], 1);TextDrawBackgroundColor(Textdraw[playerid][6], 51);TextDrawFont(Textdraw[playerid][6], 1);TextDrawSetProportional(Textdraw[playerid][6], 1);
   
Textdraw[playerid][7] = TextDrawCreate(256.500000233.520004"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][7], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][7], 94.50000029.120010);TextDrawAlignment(Textdraw[playerid][7], 1);TextDrawColor(Textdraw[playerid][7], 16777215);TextDrawSetShadow(Textdraw[playerid][7], 0);TextDrawSetOutline(Textdraw[playerid][7], 0);TextDrawFont(Textdraw[playerid][7], 4);TextDrawSetSelectable(Textdraw[playerid][7], true);
   
Textdraw[playerid][8] = TextDrawCreate(303.500000240.239944"Register");TextDrawLetterSize(Textdraw[playerid][8], 0.4499991.600000);TextDrawAlignment(Textdraw[playerid][8], 2);TextDrawColor(Textdraw[playerid][8], 16711935);TextDrawSetShadow(Textdraw[playerid][8], 0);TextDrawSetOutline(Textdraw[playerid][8], 1);TextDrawBackgroundColor(Textdraw[playerid][8], -16776961);TextDrawFont(Textdraw[playerid][8], 2);TextDrawSetProportional(Textdraw[playerid][8], 1);
   
Textdraw[playerid][9] = TextDrawCreate(209.500000263.760009"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][9], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][9], -4.000000, -128.800003);TextDrawAlignment(Textdraw[playerid][9], 1);TextDrawColor(Textdraw[playerid][9], 255);TextDrawSetShadow(Textdraw[playerid][9], 0);TextDrawSetOutline(Textdraw[playerid][9], 0);TextDrawFont(Textdraw[playerid][9], 4);
   
Textdraw[playerid][10] = TextDrawCreate(405.500000135.520004"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][10], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][10], 3.000000128.240005);TextDrawAlignment(Textdraw[playerid][10], 1);TextDrawColor(Textdraw[playerid][10], 255);TextDrawSetShadow(Textdraw[playerid][10], 0);TextDrawSetOutline(Textdraw[playerid][10], 0);TextDrawFont(Textdraw[playerid][10], 4);
   
Textdraw[playerid][11] = TextDrawCreate(408.500000137.760009"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][11], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][11], -203.000000, -6.160018);TextDrawAlignment(Textdraw[playerid][11], 1);TextDrawColor(Textdraw[playerid][11], 255);TextDrawSetShadow(Textdraw[playerid][11], 0);TextDrawSetOutline(Textdraw[playerid][11], 0);TextDrawFont(Textdraw[playerid][11], 4);
   
Textdraw[playerid][12] = TextDrawCreate(408.500000263.760009"LD_SPAC:white");TextDrawLetterSize(Textdraw[playerid][12], 0.0000000.000000);TextDrawTextSize(Textdraw[playerid][12], -203.0000006.160003);TextDrawAlignment(Textdraw[playerid][12], 1);TextDrawColor(Textdraw[playerid][12], 255);TextDrawSetShadow(Textdraw[playerid][12], 0);TextDrawSetOutline(Textdraw[playerid][12], 0);TextDrawFont(Textdraw[playerid][12], 4);
   for(new 
ii<13i++)
     
TextDrawShowForPlayer(playerid,Textdraw[playerid][i]);
   return 
1;
   }
}
public 
OnPlayerDisconnect(playeridreason)
{
    
PlayerInfo[playerid][PassShow] = false;
    
PlayerInfo[playerid][LFinished] = false;
    
PlayerInfo[playerid][Registered] = false;
    
PlayerInfo[playerid][Skin] = -1;
    
GetPlayerPos(playeriddX,dY,dZ);
    
dini_IntSet(string3,"Cash",GetPlayerMoney(playerid));
    
dini_FloatSet(string3,"X",dX);
    
dini_FloatSet(string3,"Y",dY);
    
dini_FloatSet(string3,"Z",dZ);
    
dini_Get(string3,"Cash");
    for(new 
ii<14i++)
      
TextDrawDestroy(Textdraw[playerid][i]);
    return 
1;
}

public 
OnPlayerDeath(playerid,killerid,reason)
{
SetSpawnInfo(playeridNO_TEAM,strval(lskin),pX,pY,pZ,90.0,36,999999,24,999999,14,999999);
return 
1;
}
public 
OnPlayerClickTextDraw(playeridText:clickedid)
{
if(
clickedid == Textdraw[playerid][5])
{
    if(!
PlayerInfo[playerid][LFinished])
    {
    
ShowPlayerDialog(playeridDIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00ff00}Enter A {0000ff}Password","{00ff00}Pleas Enter A {ff0000}Strong {0000ff}Password","Ok","Cancel");
    return 
1;
    }
    if(
PlayerInfo[playerid][LFinished])
        return 
ShowPlayerDialog(playeridDIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00ff00}Enter A {0000ff}Password","{00ff00}Change your password","Ok","Cancel");
    return 
1;
}
if(
clickedid == Textdraw[playerid][7])
{
    if(!
PlayerInfo[playerid][LFinished]) return ShowPlayerDialog(playeridDIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00ff00}No Password Entered","{00ff00}Please Enter A Password","Ok","Cancel");
    
ShowPlayerDialog(playeridDIALOG_LFINISHED,DIALOG_STYLE_MSGBOX,"Rules","Do Not Hack Or Use CLEO Mod\nUse /report to report for a hacker","Register","");
    return 
1;
}
return 
1;
}
public 
OnDialogResponse(playeriddialogidresponse listiteminputtext[])
{
new 
string4[128];
if(
dialogid == DIALOG_LOGIN)
{
    if(
response)
    {
        if(
isnull(inputtext))
            return 
ShowPlayerDialog(playeridDIALOG_LOGIN,DIALOG_STYLE_PASSWORD,"{00ff00}Enter A {0000ff}Password","{00ff00}Pleas Enter A {ff0000}Strong {0000ff}Password","Ok","Cancel");
            
        
TextDrawSetString(Textdraw[playerid][6],inputtext );
        
format(PlayerInfo[playerid][Pass], 500 ,"%s",inputtext);
        
PlayerInfo[playerid][PassShow] = true;
        
PlayerInfo[playerid][LFinished] = true;
    }
    else 
    {
        return 
Kick(playerid);
    }
}
if(
dialogid == DIALOG_LOGIN2)
{
    if(
response)
    {
        new 
string5[128];
        
Get(Name,playerid,plname);
        
format(string3,sizeof string3,"%s.ini",plname);
        
format(string5,sizeof string4,"Password Changed. Your New PASS Is (%s)",inputtext);
        
SendClientMessage(playerid,-1,string5);
        
dini_Remove(string3);
        
dini_Set(string3,"Name",string2);
        
dini_Set(string3,"Password",string4);
    }
    return 
1;
}
if(
dialogid == DIALOG_LOGIN3)
{
    if(
response)
    {
        new 
tmp[256];
        
Get(Name,playerid,plname);
        
format(string3,sizeof string3,"%s.ini",plname);
        
tmp dini_Get(string3"Password");
        if(
isnull(inputtext))
        {
            
ShowPlayerDialog(playeridDIALOG_LOGIN3,DIALOG_STYLE_PASSWORD,"{00ff00}Enter Your {0000ff}Password","{0000ff}Invalid Password","Login","Cancel");
            return 
0;
        }
        if(!
strcmp(inputtext,tmp,false))
        {
            
format(PlayerInfo[playerid][Pass], 500 ,"%s",inputtext);
               return 
ShowPlayerDialog(playerid,DIALOG_FLOGIN,DIALOG_STYLE_MSGBOX,"Log-in","Thanks For Log-in","Ok","");
        }
        else
        {
            
ShowPlayerDialog(playeridDIALOG_LOGIN3,DIALOG_STYLE_PASSWORD,"{00ff00}Enter Your {0000ff}Password","{0000ff}Invalid Password","Login","Cancel");
            return 
0;
        }
     }
}
if(
dialogid == DIALOG_LFINISHED)
{
    if(
response)
    {
      
ShowPlayerDialog(playeridDIALOG_SKIN,DIALOG_STYLE_INPUT,"Choose a skin","Enter Skin Id","Spawn","");
    }
    return 
1;
}
if(
dialogid == DIALOG_SKIN)
{
    if(
response)
    {
    if(!
IsValidSkin(strval(inputtext)))
    {
        
ShowPlayerDialog(playeridDIALOG_SKIN,DIALOG_STYLE_INPUT,"Choose a skin","{0000ff}ERROR: Invalid Skin ID","Spawn","");
        return 
0;
    }
    
PlayerInfo[playerid][Skin] = strval(inputtext);
    for(new 
ii<14i++)
    {
        
TextDrawHideForPlayer(playerid,Textdraw[playerid][i]);
    }
    
    
SetSpawnInfo(playeridNO_TEAM,PlayerInfo[playerid][Skin],pX,pY,pZ,90.0,36,999999,24,999999,14,999999);
    
GivePlayerMoney(playerid50000);
    
TogglePlayerSpectating(playerid,false);
    
CancelSelectTextDraw(playerid);
    
    
Get(Name,playerid,plname);
    
format(string3,sizeof string3,"/%s.ini",plname);
    
dini_Create(string3);
    
dini_Set(string3,"Name",plname);
    
dini_Set(string3,"Password",PlayerInfo[playerid][Pass]);
    
dini_IntSet(string3,"Skin",PlayerInfo[playerid][Skin]);
    
dini_IntSet(string3,"Cash",GetPlayerMoney(playerid));

    
dini_FloatSet(string3,"X",pX);
    
dini_FloatSet(string3,"Y",pY);
     
dini_FloatSet(string3,"Z",pZ);

    }
    return 
1;
}
if(
dialogid == DIALOG_FLOGIN)
{
    
lskin dini_Get(string3,"Skin");
    
SetSpawnInfo(playeridNO_TEAM,strval(lskin),dX,dY,dZ,90.0,36,999999,24,999999,14,999999);
    
SpawnPlayer(playerid);
    
CancelSelectTextDraw(playerid);
    
TogglePlayerSpectating(playerid,false);
}
return 
1;
}
public 
OnPlayerSpawn(playerid)
{
CancelSelectTextDraw(playerid);
return 
1;
}
public 
ShowPassword(playerid)
{
    
TextDrawShowForPlayer(playerid,Textdraw[playerid][13]);
    return 
1;
}
CMD:setskin(playeridparams[])
{
    if(
isnull(params)){ SendClientMessage(playerid7,"/skin [skinid]");return 0;}
    return 
SetPlayerSkinEx(playerid,strval(params));
}
stock IsValidSkin(SkinID)
{
    if((
SkinID == 0)||(SkinID == 7)||(SkinID >= && SkinID <= 41)||(SkinID >= 43 && SkinID <= 64)||(SkinID >= 66 && SkinID <= 73)||(SkinID >= 75 && SkinID <= 85)||(SkinID >= 87 && SkinID <= 118)||(SkinID >= 120 && SkinID <= 148)||(SkinID >= 150 && SkinID <= 207)||(SkinID >= 209 && SkinID <= 264)||(SkinID >= 274 && SkinID <= 288)||(SkinID >= 290 && SkinID <= 299)) return true;
    else return 
false;
}
stock SetPlayerSkinEx(playeridskinid)
{
    new 
sendskin[256];
    
SetPlayerSkin(playerid,skinid);
    
dini_IntSet(string3,"Skin",skinid);
    if(!
IsValidSkin(skinid)) return SendClientMessage(playerid7,"InValid Skin ID");
    
format(sendskin256,"{00ff00}Skin Saved. Your Skin Now Is (%d)",skinid);
    
SendClientMessage(playerid7,sendskin);
    return 
1;


Credits
HoussamMaroc (creator)

iPLEOMAX (textdraws)


Team Samp (a_samp)

Y_Less (sscanf2)

DracoBlue (dini)

Attached Files
File Type: pwn Login.pwn (13.6 KB)
File Type: amx Login.amx (325.5 KB)

[FilterScript] iZombies Filterscript |FCNPC|0.3.7|

$
0
0
Hello everyone!

Intro
As you know FCNPC is an awesome plugin started by OrMisicL and maintained by Ziggi, it allows you to control your NPC's in every way,
i've been using this awesome plugin for more then a year by now for my server, to use npc's as zombies. Lately i noticed there is no updated zombie filterscript using latest version of FCNPC thus i decided to make a short script for that!
(FCNPC is a memory hacking plugin which means the older filterscripts made with older versions will not work on latest version of SA:MP, read more Here).


Features

  • Latest version of FCNPC (and thus SA:MP)
  • Optimized script, with as less code as possible.
  • No lags! (Tested!)
  • Option to choose number of zombies to add!
  • 100+ Random zombie spawns around SA.
  • Labels over zombies heads with their health information!
  • Zombies are able to follow the nearest player! (you can specify the ranges)
  • Zombies can kill players!
  • Zombies can be killed!
  • Zombies will respawn in another location as soon as they die!
  • [...] Can't list all of em.



installation
  • Requirements
    - FCNPC Plugin & inc (click Here for latest version)
    - Latest SA:MP Version (0.3.7)
    - YSI (y_timers)
  • Installation
    - Download the filterscript from download links below.
    - Download FCNPC from link given above.
    - Place FCNPC.dll (or .so) in plugins folder and FCNPC.inc in pawn/include/ folder.
    - Open your IDE (pawn, sublime notepad++ etc) and compile iZombie.pwn.
    - Open server.cfg and add FCNPC to plugins and iZombie to filterscripts.
    - Start the server, Zombies will start joining the server as soon as its up.
    - Go ig and enjoy :D


Note
I do not force you to keep any credits (even tho i havent added any in script), feel free to use it anyhow you want


Media
http://i.imgur.com/Xk7FYR2.png
http://i.imgur.com/LSFpKIS.png
http://i.imgur.com/XRH6ru5.png
http://i.imgur.com/IxsCgvP.png
http://i.imgur.com/hL0gJwz.png
http://i.imgur.com/dtXDHXw.png

[FilterScript] GBan System - SQLite

$
0
0
GBan System
This is a simple and easy SQLite based ban system. I am using this instead of SAMP ban system which is crappy in my opinion!
This has IP. Range detection, thanks to R@f for that; With a nice temporary ban system, where you can either ban a player for 0 days i.e. Permanent or for any number of days upto a year (365 days)!

And i also made a nice textdraw when a player gets banned, this will be shown:


This is the ban dialog when you type in the command: /ban


You can also search for a ban and UnBan if needed to: /searchban


Required Libraries & Credits
KickBan Fix Include - https://github.com/Agneese-Saini/SA-...kickbanfix.inc
I-ZCMD include - http://forum.sa-mp.com/showthread.php?t=576114
EasyDialog include (by Emmet_) - https://github.com/Agneese-Saini/SA-...easydialog.inc
Sscanf2 plugin - http://forum.sa-mp.com/showthread.php?t=602923
TimeStampToDate include - http://forum.sa-mp.com/showthread.php?t=347605

Download
https://github.com/Agneese-Saini/SA-...ripts/gban.pwn

[FilterScript] VIP System

$
0
0
INTRO:
Hello! This my first VIP system filterscript! I know that there may be many of them which are maybe better and/or more advanced than mine, its for newbies and SIMPLE, Its on months like if you make someone vip with /setvip 0 1 he will get level 1 with 1 month and after 1 month his VIP feature will auto removed this script got 12 moths vip subscription its not advanced its just a SIMPLE filterscript for newbies.

VIP Commands:


Code:

/carcolor (Changes the vehicle color.)
/changeskin  (Changes the player skin.)
/weather  (Changes the player weather.)
/veh  (Spawn a vehicle using the name for EX. /veh infernus.)
/dvc  (Destroys the vehicle you spawned using /veh)
/nos  (Adds nitrous to your vehicle.)
/vc  (VIP Chat.)
/vpm (VIP Personal message.)
/vrepair  (Repair your vehicle.)
/vflip      (Flip your vehicle.)
/setvip (playerid) (month) //For RCON Admins

BUGS!
There's actually no bugs into it, If you found any, PM me.


How to Install:

1st Way:
1- Use the pastebin code and paste in the pawno.
2- Save the file in your filterscripts folder.
3-Compile it then go to your server.cfg file.
4- Add VIP at filterscripts
Example:

Code:

echo Executing Server Config...
lanmode 1
rcon_password changeme
maxplayers 30
port 7777
hostname changeme
gamemode0 changeme 1
plugins streamer.dll sscanf.dll
filterscripts VIP
announce 1
query 1
chatlogging 0
weburl changeme
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 1
logtimeformat [%H:%M:%S]


2nd Way:
1- Download VIP System.rar file from MediaFire and extract at any where
2- Paste the VIP.pawn and VIP.amx files in your filterscripts folder
3- Add the VIP at filterscripts in server.cfg
Example:

Code:

echo Executing Server Config...
lanmode 1
rcon_password changeme
maxplayers 30
port 7777
hostname changeme
gamemode0 changeme 1
plugins streamer.dll sscanf.dll
filterscripts VIP
announce 1
query 1
chatlogging 0
weburl changeme
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 1
logtimeformat [%H:%M:%S]

DOWNLOADS:

https://pastebin.com/w9FYz2Bg
http://www.mediafire.com/file/4w12po...VIP+System.rar


What I need:
Reputations.

[FilterScript] rep point house

$
0
0
Somebody can pass me some download link of this house system with this rep point, the green point with the logo of a house I hate it.

[FilterScript] [MySQL-R39]Music Player

$
0
0
Hello!
I made a simple music player script, which I like to share with you.


[ About ]

Time to make: 15 minutes
Lines of code: 168
Used includes: a_samp, a_msql, zcmd, sscanf2


[ Pictures ]
IMGUR

[ MySQL Table]
Code:

CREATE TABLE `songs` (
  `ID` tinyint(4) NOT NULL,
  `Artist` text NOT NULL,
  `Song` text NOT NULL,
  `Link` text NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;


ALTER TABLE `songs`
  ADD PRIMARY KEY (`ID`);


ALTER TABLE `songs`
  MODIFY `ID` int(11) NOT NULL AUTO_INCREMENT;

[ Script ]
Code:

#include        <a_samp>
#include          <a_mysql>
#include        <sscanf2>
#include        <zcmd>

//»Defines
#define MAX_SONGS 100
#define DIALOG_SONG 100

//»Enum
enum music
{
m_id,
m_artist[32],
m_song[32],
m_link[96]
}

//»Vars
new sql,songs,mInfo[MAX_SONGS][music];

//»Forwards
forward LoadSongs();
forward InsertSong(a[],b[],c[]);

public OnFilterScriptInit()
{
        mysql_log(LOG_ALL, LOG_TYPE_HTML);
        sql = mysql_connect("127.0.0.1", "root", "music", "");
        if(mysql_errno() != 0)
        {
                print("[MySQL] » ( ! )Failed to connect to the database!");
        }
        else
          {
                print("[MySQL] » Successful connection to the database!");
        }
        print("[MusicPlayer] » Loading songs..");
        mysql_tquery(sql, "SELECT * FROM songs", "LoadSongs");
        return 1;
}

public OnFilterScriptExit()
{
        mysql_close(sql);
        return 1;
}

public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
        if(dialogid == DIALOG_SONG)
        {
                if(response)
                {
                        if(listitem == 0)
                        {
                                StopAudioStreamForPlayer(playerid);
                                  SendClientMessage(playerid,0xf03c3cAA,"Music stopped!");
                        }
                        else
                        {
                    PlayAudioStreamForPlayer(playerid,mInfo[listitem-1][m_link]);
                    new string[100];
                    format(string,100,"Music started! / Performer: %s / Song : %s /",mInfo[listitem-1][m_artist],mInfo[listitem-1][m_song]);
                                SendClientMessage(playerid,0x8a3cf0AA,string);
                        }
                }
        }
        return 0;
}

public LoadSongs()
{
        for(new i = 0; i < cache_get_row_count(); i++)
        {
                mInfo[i][m_id] = cache_get_row_int(i,0);
                cache_get_row(i, 1,mInfo[i][m_artist],1,32);
                cache_get_row(i, 2,mInfo[i][m_song],1,32);
                cache_get_row(i, 3,mInfo[i][m_link],1,96);
                songs ++;
        }
        printf("[MusicPlayer] » %d song(s) loaded from the database.",songs);
        return true;
}


public InsertSong(a[],b[],c[])
{
        mInfo[songs][m_id] = cache_insert_id();
        strins(mInfo[songs][m_artist],a,0);
        strins(mInfo[songs][m_song],b,0);
        strins(mInfo[songs][m_link],c,0);
        songs++;
        return true;
}

stock ShowMusic(playerid)
{
        new str[512] = "Performer\t-\tSong\n{f03c3c}Stop music\n",str2[100],count;
        for(new i = 0; i < songs; i++)
        {
                format(str2,sizeof(str2),"%s\t-\t%s\n",mInfo[i][m_artist],mInfo[i][m_song]);
                strcat(str,str2);
                count = 1;
        }
        if(count != 1) return SendClientMessage(playerid,0xf03c3cAA,"There is nothing to play. :/");
        ShowPlayerDialog(playerid,DIALOG_SONG,DIALOG_STYLE_TABLIST_HEADERS,"MusicPlayer",str, "Select", "Exit");
        return true;
}

stock Compare(comp[], with[]) // by fl0rian
{
        new LenghtComp = strlen(comp);
        new LenghtWith = strlen(with);
        new Character;
        if( LenghtComp != LenghtWith ) return false;
        for( new i = 0; i < LenghtComp; i++ )
        {
            if( comp[i] == with[i] )
            {
                Character++;
                }
        }
        if( LenghtComp == Character ) return true;
        return false;
}

CMD:mp(playerid,params[])
{
        #pragma unused params
        ShowMusic(playerid);
        return true;
}


CMD:newsong(playerid,params[])
{
        new artist[32],song[32],link[96],string[96];
        if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xf03c3cAA,"You are not authorized to use this command!!");
        if(sscanf(params, "s[32]s[32]s[96]",artist,song,link)) return SendClientMessage(playerid,0xf03c3cAA,"/newsong [Performer] [Song] [Link to mp3]");
        for(new i = 0; i < songs; i++)
        {
                if(Compare(mInfo[i][m_artist],artist) && Compare(mInfo[i][m_song],song)) return SendClientMessage(playerid,0xf03c3cAA,"This Song from the performer is already added!");
        }
        new query[256];
        mysql_format(sql, query, 256, "INSERT INTO songs (Artist,Song,Link) VALUES ('%s','%s','%s')",artist,song,link);
        mysql_tquery(sql, query,"InsertSong","sss",artist,song,link);
        format(string,96,"You sucessfully added a song! Performer: %s , Song : %s",artist,song);
        SendClientMessage(playerid,0x1cd657AA,string);
        return true;
}


CMD:refresh(playerid,params[])
{
    if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,0xf03c3cAA,"You are not authorized to use this command!!");
        for(new i = 0; i < songs; i++)
        {
                mInfo[i][m_id] = 0;
                mInfo[i][m_artist] = EOS;
                mInfo[i][m_song] = EOS;
                mInfo[i][m_link] = EOS;
        }
        songs = 0;
        mysql_tquery(sql, "SELECT * FROM songs", "LoadSongs");
        SendClientMessage(playerid,0x1cd657AA,"You sucessfully refreshed the song list!");
        return true;
}

[FilterScript] [FilterScripts] Brinks Job

$
0
0
This is my first post on this forum and I hope this script will like you
The Codes of this Job

/* BRinks job this job is for roleplay*/
#include <a_samp>
#include <streamer>

#define COLOR_VIP 0xC93CCE00
#define COLOR_BLUE 0x0000A0C8
#define COLOR_ORANGE 0xFF8000FF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_FORSTATS 0xFFFF91AA
#define COLOR_HOUSEGREEN 0x00E605AA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xF30303AA
#define COLOR_KALTER 0x33BBFFAA
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_LIME 0x00FF00FF
#define COLOR_CYAN 0x40FFFFFF
#define COLOR_PURPLE 0xC2A2DAAA
#define COLOR_BLACK 0x000000AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_FADE1 0xE6E6E6E6
#define COLOR_FADE2 0xC8C8C8C8
#define COLOR_FADE3 0xAAAAAAAA
#define COLOR_FADE4 0x8C8C8C8C
#define COLOR_FADE5 0x6E6E6E6E
#define COLOR_LIGHTRED 0xFF6347AA
#define COLOR_NEWS 0xFFA500AA
#define COLOR_LIGHTBLUE 0x33CCFFAA

new BrinksJob[256];

public OnFilterScriptInit()
{
CreateDynamic3DTextLabel("Brinks Job\n/getmoney to start the job",COLOR_LIGHTBLUE,1546.7836,-1009.7602,23.9140+0.6,10.0); // Pickup Point (LA)
CreatePickup(1247, 23, 1528.082397, -1677.978637, 5.890625, -1); //
//trucks
AddStaticVehicle(428,1542.6086,-1024.1860,24.0305,343.6036,1,3); // labrinks
AddStaticVehicle(428,1546.9899,-1025.3708,24.0302,343.7522,1,3); // labrinks
AddStaticVehicle(428,1551.1394,-1027.1367,24.0295,344.5570,1,3); // labrinks
AddStaticVehicle(428,1558.3331,-1012.1339,24.0309,181.2181,1,3); // labrinks
AddStaticVehicle(428,1562.7538,-1011.7735,24.0315,181.9679,1,3); // labrinks
}
forward BrinksFinish(playerid);
public BrinksFinish(playerid)
{
if(BrinksJob[playerid] == 0){ return 1; }

GivePlayerMoney(playerid,200);
SendClientMessage(playerid,COLOR_YELLOW,"* You have been payed for your job! - $200");
BrinksJob[playerid] = 0;

return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/getmoney", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid) && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
if(!IsPlayerInRangeOfPoint(playerid,5.0,2297.3889,-15.1795,26.4521))
{
SendClientMessage(playerid, COLOR_WHITE, " You are not in the place where you take the money!");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
return 1;
}
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
BrinksJob[playerid] = 1;
SendClientMessage(playerid,COLOR_LIGHTBLUE,"* Go in the Checkpoint to deliver the money");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
return 1;
}
else
{
SendClientMessage(playerid, COLOR_RED,"You have to be in a brinks truck to start the job");
}
}
}
return 0;
}
public OnPlayerEnterCheckpoint(playerid)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
DisablePlayerCheckpoint(playerid);
GivePlayerMoney(playerid,2000);
SendClientMessage(playerid,COLOR_YELLOW,"* You successfully transported and you get 2000$!");
}
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 428)
{
SendClientMessage(playerid, COLOR_RED, "* You can start the brinks job by using /getmoney");
}
return 0;
}
forward BackToTruck(playerid);
public BackToTruck(playerid)
{
BrinksJob[playerid] = 0;
SendClientMessage(playerid, -1, "You have lose the money,to start again,/getmoney in the checkpoint");
SetPlayerCheckpoint(playerid,2297.3889,-15.1795,26.4521,5);
}

public OnPlayerExitVehicle(playerid, vehicleid)
{
if(BrinksJob[playerid] == 1)
{
SendClientMessage(playerid, COLOR_RED, "* You have ten seconds to back in your trucks,or you will lose money!");
SetTimerEx("BackToTruck", 10000, false, "i", playerid);
}
}


The link in pastebin:https://pastebin.com/wASSr5nr

[FilterScript] Script for Anti-Cheats(HACK WITH CMD)[Filterscripts]

$
0
0
Hello people,this script is for ANTI-CHEATS or ANTI-GUN
When you make one of the CMD,for example /dgun,/whack,/maprecord your IP,has gonna been banned.
I have make screenshot of this script,if you like,reply in the comment.Thanks :D,I'm so Happy!
If this work for you,please reply the comment,don't forget.
If not work or anything,contact me and i will help you.
//////////////////////////////////////////
When you press one of the COMMAND: http://imgur.com/a/GH55A
When you try to reconnect in the server: http://imgur.com/a/mzKar
You IP Banned in scriptfiles\ban.cfg: http://imgur.com/a/SmS9T

The link of the Codes(SCRIPT):https://pastebin.com/pYQARV8t
The link of the PWN:https://www.mediafire.com/?15fcu3ct848bjpd
The link of the AMX:https://www.mediafire.com/?dht5146dkt8vtd5

[FilterScript] Custom SA-MP Hud (NooBot)

[FilterScript] Head Shot System

[FilterScript] AFK System & Join And Leave

$
0
0
Today i end HeadShot System And Post it and end too AFK System and this Afk System Contain Join And Leave Text Message

>Download
Link: https://www.mrkzgulf.com/hy3yu0ajdzc2

I Hope All Have Fun With My Scripts


Regards, Aternal

[FilterScript] Pizza San Fierro Job - Made by Me

$
0
0
Helo guys, i made a filterscript for you guys who need a Job for your server. I made this since few months ago but my pc is broken and cannot share it, but now its fine and i can share it. If you guys wanna download, i give the link bellow.

PIZZAJOB.amx : http://www.mediafire.com/file/ps7ayk...4/PIZZAJOB.amx

PIZZAJOB.pwn : http://www.mediafire.com/file/z3xbq1...m/PIZZAJOB.pwn

~ Job Information :

1. Location San Fierro Pizza (Near S.A.P.D Location) You can see 3 Pizzaboy will be stay there.

2. You can also change the Reward, Commands or Notice on the Filterscript.

~ How to Use ?

1. Download the file
2. Paste inside filterscript folders
3. Add config on your server.cfg file
4. Save and Enjoy !

~ Sorry for not bring also with the screenshot
~ Sorry for my bad english too.

Iam really glad if you guys like my first project xD

#Thanks

[FilterScript] Weapon Buying System v.1.1

$
0
0
Hello there.
Today I decided to create simple weapon buying system for new freeroam servers.
Paste it in your admin system so it will work fine.

Command: /w

Pastebin

p.s You may add more weapons and cookies,cakes or as you wish. Editing this system is very easy.
Version 2 is coming soon with improved features and saving systems.

[FilterScript] roundabout creator

$
0
0
roundabout creator
by kubak01

This project actually started as a thing connected with
our server`s lore, where the previous scripter
would just add shitload of useless roundabouts
basically almost everywhere, this is probably
a bit slow but I really wanted to get it done quickly

Also I wanted to try some streamer functions i didn't
get to use before

The whole thing is a little bit tricky, I'll explain that later
this post

Saving is done using dini2

Commands

Command syntax
/ar(oundabout) [Create/Delete/Edit]

Create
Params: size [Small/Medium/Big]

Delete
Params: id

Edit
Params: id


Increase MAX_ROUNDABOUTS if you need to
add more roundabouts



The roundabouts are made of a Core Object, and the other
objects are set corresponding to position and rotation of the core object

like this

PHP Code:

CreateDynamicObject(14467coreXcoreYcoreZcoreRXcoreRYcoreRZ); // Core
obj CreateDynamicObject(970coreX+2.839970coreY+0.300050coreZ-2.202200coreRX+0.000000coreRX+0.000000coreRX+90.000000); 


You can add your own roundabouts, you can simplify this using this php script
If you cannot figure on how to use this
I'll help

PHP Code:

<?php
$file 
file_get_contents("code.txt");
$lines explode(PHP_EOL$file);

$coreX 633.57617;
$coreY = -1398.31873;
$coreZ 13.74630;
$coreRX 0.00000;
$coreRY 0.00000;
$coreRZ 0.00000;

foreach (
$lines as $line) {

    
$line str_replace("CreateDynamicObject("""$line);
    
$line str_replace("CreateObject("""$line);
    
$line str_replace(");"""$line);
    
$exploded explode(","$line);

    
$model $exploded[0];
    
$x $exploded[1];
    
$y $exploded[2];
    
$z $exploded[3];
    
$rx $exploded[4];
    
$ry $exploded[5];
    
$rz $exploded[6];

    
//echo sprintf("X: %f", $x);
    //echo sprintf("coreX: %f", $coreX);
    //echo sprintf("coreX-x: %f", $coreX-$x);

    
$line sprintf("obj = CreateDynamicObject(%d,"$model);    


    
    if(
$x<$coreX)
    {
        
$line sprintf("%s coreX-%f,"$line$coreX-$x);
    }
    if(
$x>=$coreX)
    {
        
$line sprintf("%s coreX+%f,"$line$x-$coreX);
    }

    if(
$y<$coreY)
    {
        
$line sprintf("%s coreY-%f,"$line$coreY-$y);
    }
    if(
$y>=$coreY)
    {
        
$line sprintf("%s coreY+%f,"$line$y-$coreY);
    }

    if(
$z<$coreZ)
    {
        
$line sprintf("%s coreZ-%f,"$line$coreZ-$z);
    }
    if(
$z>=$coreZ)
    {
        
$line sprintf("%s coreZ+%f,"$line$z-$coreZ);
    }

    if(
$rx<$coreRX)
    {
        
$line sprintf("%s coreRX-%f,"$line$coreRX-$rx);
    }
    if(
$rx>=$coreRX)
    {
        
$line sprintf("%s coreRX+%f,"$line$rx-$coreRX);
    }

    if(
$ry<$coreRY)
    {
        
$line sprintf("%s coreRX-%f,"$line$coreRY-$ry);
    }
    if(
$ry>=$coreRY)
    {
        
$line sprintf("%s coreRX+%f,"$line$ry-$coreRY);
    }

    if(
$rz<$coreRZ)
    {
        
$line sprintf("%s coreRX-%f,"$line$coreRZ-$rz);
    }
    if(
$rz>=$coreRZ)
    {
        
$line sprintf("%s coreRX+%f,"$line$rz-$coreRZ);
    }

    
$line rtrim($line',');
    
$line sprintf("%s);"$line);

    echo 
$line;
    echo 
'<br />';    
    echo 
"Streamer_SetIntData(STREAMER_TYPE_OBJECT, obj, E_STREAMER_EXTRA_ID, roundAboutCache[id][raCoreObject]);";
    echo 
"<br />";
}
?>


Pastebin

Let me know if i fucked up something big time,
i will fix it

[FilterScript] TextDraw de Tela de Login Clicavel By Wolf Gangstar

[FilterScript] Handy Alarm System - MySQL

$
0
0
Hi, I've been dealing with this system for a long time and finally I was able to finish it. There is a small problem to set the date on the system. I haven't figured out that part, I wanted to share in case you wanted to still use it. If you fix the date error, I would like to update it. I'm sorry for my bad English.

Commands:

/SetAlarm = Shows information about the alarm.




Download:

Pastebin

Note: MySQL R40 was used.

[FilterScript] Automatic Car Repair - Fanboy's Filterscipt

$
0
0
AUTOMATIC CAR REPAIR SCRIPT
This Is My First Filterscipt Ever And Yes i Am a Noob


Q. Dafuq Is This?:
A. This Script Automatically Repairs All The Cars In The Server.


Thats All :D


DOWNLOAD:
Pastebin


Code:

/*
                  FIRST EVER FITERSCRIPT OF MINE
          Do WHAT EVER YOU WANT, PLEASE DONT REMOVE THE CREDITS!
         
                ____                  ____    ___        |    ____
          |      /\    |\  |  |  |  /  \  \  /  |  /
      |____  /  \    | \  |  |__/  |    |  \/      \____            FILTERSCRIPT
      |    /____\  |  \ |  |  \  |    |  /            \
      |    /      \  |  \|  |___|  \__/  /        ____/

*/

#define FILTERSCRIPT
#include <a_samp>

forward FixAllCar();
new FixTimer;

public OnFilterScriptInit()
{
        print("\n----------------------------------------");
        print(" Automatic Car Fix Filterscript By Fanboy ");
        print("-----------------------------------------\n");
        FixTimer = SetTimer("FixAllCar",1000,true);//After Every 1000 Milisecs, It Will Auto Repair All Cars.
}

public OnFilterScriptExit()
{
        KillTimer(FixTimer);
        return 1;
}

public FixAllCar()
{
        for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
        {
                if(IsPlayerConnected(playerid) && IsPlayerInAnyVehicle(playerid))
                {
                        new vehicleid = GetPlayerVehicleID(playerid);
                        SetVehicleHealth(vehicleid,1000.0);
                }
        }
}

Viewing all 595 articles
Browse latest View live


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