[Include] sInclude Library
#1

sInclude Library
Introduction:

I wanna present my sInclude Library which is created by me sSiddhant and the credits are provided to their respective Authors. sInclude Library consist of various Includes designed for Owners of Samp Servers. sInclude make its easier for you to make your own Server more quickly. sInclude is the property of sSiddhant and the Copyright belongs to their Respective Owners. Modification and Distribution of this Library without the Permission of Authors will not be tolerated. If you think we have not giving you Credit for you work on our Library then pm me with a Proof. We are constantly updating our Includes. Some of them are designed for small purpose and some for large purpose/

Includes:

sMessage v1.5:

Description:
sMessage Include belongs to the sInclude Library by sSiddhant. This Include is created by sSiddhant and consists of new Type of Client, Death and Player Messages. sMessage makes it easier for you to Send New Type of Messages instead of Creating them on your own.

Functions:
Quote:

SendClientMessageToTeam(teamid, color, message[])
SendPlayerMessageToTeam(senderid,teamid, message[])
SendPlayerMessageToAllOthers(senderid, message[])
SendPlayerMessageToAllOthers(senderid, message[])
SendClientMessageToAdmins(color, message[])
SendPlayerMessageToAdmins(senderid,message[])
SendDeathMessageToTeam(teamid, killerid, killee, reason)
SendDeathMessageToAdmins( killerid, killee, reason)
SendDeathMessageToAllOthers(playerid,killerid,kill ee,reason)
SendClientMessageToNonAdmins(color, message[])
SendPlayerMessageToNonAdmins(senderid,message[])
SendDeathMessageToNonAdmins( killerid, killee, reason)
SendDeathMessageToOtherTeams(teamid, killerid, killee, reason)
SendPlayerMessageToTeam(senderid, teamid, message[])
SendClientMessageToOtherTeams(teamid, color, message[])

sUser v0.7:

Description:
This Include belongs to the sInclude Library by sSiddhant. This Include is created by sSiddhant and consists of new Type of Functions and Callbacks related to User and its data.

Functions:
Quote:

GetUserName(playerid)
GivePlayerReward(playerid,money,score,health,armou r,weapon,wamount)
TakePlayerMoney(playerid, money)
GetPlayerSpeed(playerid)
SetPlayerSpawnProtection(playerid, time, health)
SetPlayerRealWorld(playerid)

Callbacks:
Quote:

OnSpawnProtectionEnd(playerid)

Download:
You can download the sInclude library from here

more Includes releasing soon like sTeam, sAdmin etc..
Reply
#2

Reserved
Reply
#3

Reserved for more Includes
Reply
#4

Those includes doesn't make sense..
Why make a weather including doing nothing else than the original SetWeather?
Reply
#5

Quote:
Originally Posted by Luicy.
View Post
Those includes doesn't make sense..
Why make a weather including doing nothing else than the original SetWeather?
Maybe it was made so that the callback OnWeatherChange gets called.

He should have instead hooked up the functions instead of making a second function that does the same thing in the original function.
Reply
#6

Quote:
Originally Posted by JaKe Elite
View Post
Maybe it was made so that the callback OnWeatherChange gets called.

He should have instead hooked up the functions instead of making a second function that does the same thing in the original function.
Why not just;
PHP Code:
OnGameModeInit() {
    
SetWeather(some id);
    
/*do what u want*/

Reply
#7

Quote:
Originally Posted by Luicy.
View Post
Why not just;
PHP Code:
OnGameModeInit() {
    
SetWeather(some id);
    
/*do what u want*/

Why you did not respect to his work? lol.

*OT: Keep it up mate!
Reply
#8

Code:
stock SetWeatherEx(weatherid)
{
	SetWeather(weatherid);
	new weather = weatherid;
	CallLocalFunction(OnWeatherChange(weatherid));
}
wtf...
Reply
#9

Well, at least this guy actually tried. Most newbs wouldn't have done that much.


So a few obvious things... MAX_PLAYERS loops are bad. SetWeatherEx needs to be a hook, remove the "weather" variable, and I'm not totally sure what you want the CallLocalFunction line to do. If it's just a simple local call just execute the callback. And more.
Reply
#10

Thanks for all your suggestions i have decided to remove sWeather and will combine it with someother include with proper hooking and Yes i have updated the sMessage, which now contains 15 Types of Player, Client and Death Messages. Special thanks to Crayder and justice96
Reply
#11

Quote:
Originally Posted by Luicy.
View Post
Those includes doesn't make sense..
Why make a weather including doing nothing else than the original SetWeather?
Yeah! I made to make OnWeatherChangeCallback and GetWeather Function but I will hook it and reupload it and it will be combined with some other Include

Quote:
Originally Posted by JaKe Elite
View Post
Maybe it was made so that the callback OnWeatherChange gets called.

He should have instead hooked up the functions instead of making a second function that does the same thing in the original function.
I will hook it and reupload it and I made this Include because I have few great ideas in my mind which I will add later on related to weather

Quote:
Originally Posted by Luicy.
View Post
Why not just;
PHP Code:
OnGameModeInit() {
    
SetWeather(some id);
    
/*do what u want*/

I cant make you Understand but as I wanna make new functions for Weather for which this Include is important so i made a new function but now maybe i will hook it

Quote:
Originally Posted by kvann
View Post
Code:
stock SetWeatherEx(weatherid)
{
	SetWeather(weatherid);
	new weather = weatherid;
	CallLocalFunction(OnWeatherChange(weatherid));
}
wtf...
Bro! If you don't have any suggestion why don't you just keep your mouth close..It really hurts...If you would have given some suggestions then I would have appreciated it

Quote:
Originally Posted by Crayder
View Post
Well, at least this guy actually tried. Most newbs wouldn't have done that much.


So a few obvious things... MAX_PLAYERS loops are bad. SetWeatherEx needs to be a hook, remove the "weather" variable, and I'm not totally sure what you want the CallLocalFunction line to do. If it's just a simple local call just execute the callback. And more.
Thanks for your support pal! I understand what you just said and i will hook the function and make sWeather include more interesting and useful

Quote:
Originally Posted by justice96
View Post
Why you did not respect to his work? lol.

*OT: Keep it up mate!
Thanks! Really appreciate your support
Reply
#12

Working on the new Includes
Reply
#13

Quote:
Originally Posted by Siddhant240201
View Post
Working on the new Includes
So? No need to post it here to get posts to your stats.
Reply
#14

Quote:
Originally Posted by Luicy.
View Post
So? No need to post it here to get posts to your stats.
Don't be posting simply for an argument, I'd have not seen it if it wasn't bumped, and those that are watching it, will also see he is continuing to develop it.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)