SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts > Includes

Reply
 
Thread Tools Display Modes
Old 02/05/2010, 12:20 PM   #1
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,800
Reputation: 1160
Default [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions)

LSF - Lorenc's Simple Functions
Hey everyone I've made a INC which is kind of basic..
and its my first INC!

Why I Made this INC?
I was trying to practice on loops because i wasn't really good at them
so instead of throwing this include i decided to release it and find a person who will use it.

Ok lets start with what the functions are:

Code:
	native GiveAllPlayersWeapon(Weaponid,Ammo)
	native ResetAllPlayersCash()
	native KickAllPlayers()
	native BanAllPlayers()
	native SetAllPlayersVirtualWorld(World)
	native SetAllPlayersSkin(Skinid)
	native SetAllPlayersInterior(Interior)
	SetAllPlayersScore(Score)
Version 2 functions that been added:
Code:
	native ReturnNameGang(name[]);
	native ReturnPlayerGang(playerid);
	native NameContainsGang(playerid, clan[]);
	native SetMapNameModeText(string[]);
	native FindPlayer(const string[]);
yes there the functions... As you look through each function created you will know what they are..
Ill update the functions bit by bit!
Download:
http://pastebin.com/sEBYqGhN - V1 shitty based one
http://pastebin.com/kAVsbePw - V1 uses foreach by Freddo [BINMAN]
http://pastebin.com/ttsGMYCS - V2 uses foreach


Any bugs? Functions not working? Report them to me!
MIRRORS ARE ACCEPTED AND NO HARSH COMMENTS

Credits: Lorenc creating the INC, Tommy420 some functions , Freddo [BINMAN] for editing, ***** for foreach
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777


Last edited by Lorenc_; 28/12/2010 at 12:14 AM.
Lorenc_ is offline   Reply With Quote
Old 02/05/2010, 12:29 PM   #2
Calgon
Banned
 
Join Date: Jan 2009
Posts: 6,140
Reputation: 1127
Default Re: [INC] LSF - Lorenc's Simple Functions

Use the 'stock' keyword, if you're going to create functions that may not be used.

http://pastebin.com/kAVsbePw

I've updated it for you, also using foreach() by ******.

Pretty useless include though.
Calgon is offline   Reply With Quote
Old 02/05/2010, 12:30 PM   #3
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,800
Reputation: 1160
Default Re: [INC] LSF - Lorenc's Simple Functions

Quote:
Originally Posted by Freddo [BINMAN
]
Use the 'stock' keyword, if you're going to create functions that may not be used.

http://pastebin.com/kAVsbePw

I've updated it for you, also using foreach() by ******.

Pretty useless include though.
Thanks... and btw ill update it and add other functions different to it tommrow....
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 02/05/2010, 01:55 PM   #4
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default Re: [INC] LSF - Lorenc's Simple Functions

GiveAllPlayersWeapon(Weaponid,Ammo) can be useful but who would use BanAllplayers anyway nice work
Thrarod is offline   Reply With Quote
Old 02/05/2010, 02:04 PM   #5
SlashPT
High-roller
 
SlashPT's Avatar
 
Join Date: Sep 2009
Location: Hell
Posts: 1,973
Reputation: 116
Default Re: [INC] LSF - Lorenc's Simple Functions

dah because this

pawn Code:
cmd(banall, playerid, params[])
{
    BanAllPlayers(playerid);
    #pragma unused params
    return 1;
}

pawn Code:
stock BanAllPlayers(playerid)
{
    foreach(Player, i)
    {
        if(i != playerid)
        {
            SendClientMessage(i, 0x3399FFAA,"[F*ck You All:] Server today is on it nerves");
            SendClientMessage(playerid, 0xFF9900AA,"[CPU:] Yooo d*mbass thanks i'm not anymore charged :D");
            Ban( i );
        }
    }
    return 1;
}

slightly modified lol
__________________

Zh3r0Jansish
SlashPT is offline   Reply With Quote
Old 02/05/2010, 02:08 PM   #6
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default Re: [INC] LSF - Lorenc's Simple Functions

Server is angry - Also +1 to Freddo for using foreach func.
Thrarod is offline   Reply With Quote
Old 02/05/2010, 03:24 PM   #7
SlashPT
High-roller
 
SlashPT's Avatar
 
Join Date: Sep 2009
Location: Hell
Posts: 1,973
Reputation: 116
Default Re: [INC] LSF - Lorenc's Simple Functions

very angry

btw yea i agree better with foreach!
__________________

Zh3r0Jansish
SlashPT is offline   Reply With Quote
Old 02/05/2010, 10:22 PM   #8
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,800
Reputation: 1160
Default Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions)

Thanks guys! I've released V2 right now! Check it out
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Old 02/05/2010, 10:41 PM   #9
ViruZZzZ_ChiLLL
High-roller
 
ViruZZzZ_ChiLLL's Avatar
 
Join Date: Aug 2009
Location: I don't know
Posts: 1,645
Reputation: 8
Default Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions)

Quote:
Originally Posted by ((Lorenc))
Thanks guys! I've released V2 right now! Check it out
Oh, nice
________
GRAPE APE

Last edited by ViruZZzZ_ChiLLL; 25/02/2011 at 01:35 AM.
ViruZZzZ_ChiLLL is offline   Reply With Quote
Old 03/05/2010, 07:18 AM   #10
Lorenc_
High-roller
 
Lorenc_'s Avatar
 
Join Date: Jan 2010
Location: Australia
Posts: 3,800
Reputation: 1160
Default Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions)

Thanks, any suggestions about v3??
__________________
Join the best Cops And Robbers in SA-MP, today. svr.sfcnr.com:7777

Lorenc_ is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Useful Functions Sandra18[NL] Filterscripts 4009 12/11/2019 08:11 PM
[Plugin] [REL] Functions Carlton Plugin Development 25 04/02/2011 02:21 PM
Functions ? all of them ? AlbanianGuy Help Archive 12 21/06/2010 11:04 PM
[Include] [INC] SA:MP New Functions 0.4a DKN ipsBruno Lançamentos/Releases 22 17/06/2010 09:38 AM
[FUNCTIONS] A few, but really useful Garf. Filterscripts 8 26/09/2009 05:41 PM


All times are GMT. The time now is 12:01 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.