SA-MP Forums Archive
[Include] [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) (/showthread.php?tid=145450)



[INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Lorenc_ - 02.05.2010

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, Yless for foreach



Re: [INC] LSF - Lorenc's Simple Functions - Calgon - 02.05.2010

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 Y_LESS.

Pretty useless include though.


Re: [INC] LSF - Lorenc's Simple Functions - Lorenc_ - 02.05.2010

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 Y_LESS.

Pretty useless include though.
Thanks... and btw ill update it and add other functions different to it tommrow....


Re: [INC] LSF - Lorenc's Simple Functions - Thrarod - 02.05.2010

GiveAllPlayersWeapon(Weaponid,Ammo) can be useful but who would use BanAllplayers anyway nice work


Re: [INC] LSF - Lorenc's Simple Functions - SlashPT - 02.05.2010

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


Re: [INC] LSF - Lorenc's Simple Functions - Thrarod - 02.05.2010

Server is angry - Also +1 to Freddo for using foreach func.


Re: [INC] LSF - Lorenc's Simple Functions - SlashPT - 02.05.2010

very angry

btw yea i agree better with foreach!


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Lorenc_ - 02.05.2010

Thanks guys! I've released V2 right now! Check it out


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - ViruZZzZ_ChiLLL - 02.05.2010

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


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Lorenc_ - 03.05.2010

Thanks, any suggestions about v3??


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Thrarod - 03.05.2010

((Lorenc)) what does new functions do?


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Lorenc_ - 03.05.2010

Quote:
Originally Posted by Freddo [BINMAN
]
Quote:
Originally Posted by ((Lorenc))
Thanks, any suggestions about v3??
It's an include that loops around players, pretty much doing the most useless things in the World. There is no use for this, let alone suggestions. Make a new include.
Aright you hate it so get off the topic.

Quote:
Originally Posted by Thrarod
((Lorenc)) what does new functions do?
ohh my bad forgot to tell ya!

pawn Код:
native ReturnNameGang(name[]); // returns a name gang
    native ReturnPlayerGang(playerid); // returns a player gang
    native NameContainsGang(playerid, clan[]); // looks for the gang/clan to check if it contains one.
    native SetMapNameModeText(string[]); // sets the map name - nooby func..
    native FindPlayer(const string[]); // finds a player
Ill make a command to verify you have a gang


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - std - 20.04.2018

Sorry for the 8 year bump, but can't only plugins make natives?


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Dayrion - 20.04.2018

Quote:
Originally Posted by std
Посмотреть сообщение
Sorry for the 8 year bump, but can't only plugins make natives?
You are right, that's why include makes "fake natives".


Re: [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions) - Lorenc_ - 21.04.2018

Quote:
Originally Posted by std
Посмотреть сообщение
Sorry for the 8 year bump, but can't only plugins make natives?
it was so that the pawn editor picks up on it as a function. nowadays ppl use different IDEs

*-- please do not comment on this thread it's 8 years old