[Include] iExtras - 1.0A
#1

iExtras


You might wonder what iExtras is, iExtras is an include I have been writing adding options to create simple scripting.
iExtras isn't used that much but it is a nice include if you started scripting and want to do some advanced things.

Tutorials:
https://sampforum.blast.hk/showthread.php?tid=488023 - SCM & Parachuting:

Options:
Quote:

GiveHealth(playerid, Float:Health); - Give the player the amount of health filled in at Float:health.
TakeHealth(playerid,Float:Health); - Same as above, but taking health. Not giving it.
GivePlayerArmour(playerid,Float:Armour); - Same as GiveHealth, but giving the player armour.
TakePlayerArmour(playerid); - Same as GivePlayerArmour but taking the player's armour.
Slap(playerid); - Slapping the player in the air.
Explode(playerid); - Exploding the player, causing him to die.
GivePlayerScore(playerid); - Giving the player a certain amount of score on top of his existing score.
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY); - Traces if the player is in the area.
GetVehicleSpeed(vehicleid); - Get's how fast a vehicle goes. Can be usefull for anti-cheats.
GetPlayerSpeed(playerid); - Gets how fast the player runs. Can be usefull for anti-cheats.
IsPlayerInWater(playerid); - can be used in an "if" statement, checking if the player is in the water.
IsPlayerParachuting(playerid); - Checks if the player is skydiving. can be used in an "if" statement or a timer.
IsPlayerUsingParachute(playerid); - Checks if the player deployed his parachute.
IsPlayerAiming(playerid); - Checks if the player aims. (if statement or timer)
GetWeather(weatherid); - Gets the weather ID.
Heallall(); - Heals every player online.
Armourall(); - Give all players online a certain amount of armour.
GiveAllCash(cash); - Gives all players online a certain amount of cash.
ScoreAll(score); - Gives all players online a certain amount of score.
FreezeAllPlayers(); - Freezes all players online.
UnFreezeAllPlayers(); - Unfreeze's all players online.
DisarmAllPlayers(); - Removes all online player's weapons.
AdminMessage(color, const, msg[]); - Sends a message to all RCON admins online.


Added in 2.0 & 3.0:
Quote:

SCM - SendClientMessage with a string.
GetVehicleTuningLocation - Detects where his vehicle has to be tuned.
GetWeaponModel - Get's the player's weapon.
GetPlayer3DZone - Gets a player's position (3D)
GetPlayer2DZone - Gets a player's position (2D)
IsMeleeWeapon - Checks if a player has a melee weapon.
IsHeavyWeapon - Detects if its a minigun or any other heavy gun.
IsRocketWeapon - Detects if the weapon fires rockets.
PlayerName - Gets'a player's name.

Downloads

https://github.com/iRonan/iExtras
http://pastebin.com/2hszcGRM
Reply
#2

This won't compile.

Код:
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(178) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(181) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(182) : error 010: invalid function or declaration
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(219) : warning 203: symbol is never used: "name"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Also, "GetWeaponAmmo" is pointless, "GetPlayerAmmo" is literally the same thing.

Otherwise, a nice set of functions you have here!
Reply
#3

Quote:
Originally Posted by Emmet_
Посмотреть сообщение
This won't compile.

Код:
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(178) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(181) : error 021: symbol already defined: "GetPlayerName"
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(182) : error 010: invalid function or declaration
C:\Documents and Settings\Brandon\Desktop\Server 2\pawno\new.pwn(219) : warning 203: symbol is never used: "name"
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase


3 Errors.
Also, "GetWeaponAmmo" is pointless, "GetPlayerAmmo" is literally the same thing.

Otherwise, a nice set of functions you have here!
I removed GetWeaponAmmo then, as you said it is the same as GetPlayerAmmo. I will look into GetPlayerName, but thank you.

I have added a dropbox link!
Reply
#4

I am working on a few new functions, and I would like to have suggestions from you guys.

The following things are to make scripting easier for new scripters.
Quote:

gmx(); - Restarting the server.

Any other idea is welcome and appreciated.
Reply
#5

No clue why my old include post got removed but I added 3.0 here

If you are going to remove this post again atleast PM me why so I know the reason.
Reply
#6

Quote:
Originally Posted by [WA]iRonan
Посмотреть сообщение
No clue why my old include post got removed but I added 3.0 here

If you are going to remove this post again atleast PM me why so I know the reason.
Because you ignore me, all shalt see it:

Because you created the %30 of the script. You have, not given credits to people who also do have their functions in your include. This will be considered as violation of the rights reserved for the author. You also copied the zones list from Cueball!

Here is something which you should look onto:

GetWeather(...) - Only returns a string for example, if we write GetWeather(9); It will only return a string 'Cloudy', which is useless for use. I expected that it will return the data by getting itself the current weather in the server.

IsPlayerInArea(...) - This function has been already out (See this topic, so why publishing this AGAIN?

IsPlayerInWater(...) - You dont need to include this, because, no-one will be using this. (The reason is stated in the end of my post.)

IsPlayerParachuting(...) - You have taken a function well know on this forum 'IsPlayerSkyDiving' and renamed it. - You dont need to include this, because, no-one will be using this. (The reason is stated in the end of my post.)

IsPlayerUsingParachute(...) - You dont need to include this, because, no-one will be using this. (The reason is stated in the end of my post.)

IsPlayerAiming(...) - You dont need to include this, because, no-one will be using this. (The reason is stated in the end of my post.)

GetVehicleSpeed(...) - You have copied it from a scripting help post (I remember it) -You dont need to include this, because, no-one will be using this. (The reason is stated in the end of my post.)

Starting to count from GetPlayerSpeed(...) to GetPlayer3Dzone(...) - Verily you have copied the include of this topic!

You have almost copied everything!

The reason for telling "You dont need to include this, because, no-one will be using this. (The reason is stated in the end of my post.)" is:

No one wont use this! because:

There is ALREADY a topic for useful functions and will be more useful ->

https://sampforum.blast.hk/showthread.php?tid=38965

......................

Please! Don't re-release the next version of this include again!
Reply
#7

Sorry for not checking every post that exists. I will be re-releasing it as I know there are people who use this.

This is xStocks with added features and bug fixes, the zones are from Cueball, true story.

I wasn't ignoring you its just the fact the thread was gone before I could even read any reply.

We have that thread although there are a lot of things which might be at some page and they will never be found again as nobody is going to check every page like you did.
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=38965

You expect people to use that include? and YET there is no credits.
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)