[Include] [INC] LSF - Lorenc's Simple Functions (w/ gang/clan functions)
#1

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
Reply
#2

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.
Reply
#3

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....
Reply
#4

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

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
Reply
#6

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

very angry

btw yea i agree better with foreach!
Reply
#8

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

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

Thanks, any suggestions about v3??
Reply
#11

((Lorenc)) what does new functions do?
Reply
#12

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
Reply
#13

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

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".
Reply
#15

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)