SA-MP Forums Archive
=>SInclude<= [v1.3] Usefull 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)
+--- Thread: =>SInclude<= [v1.3] Usefull Functions (/showthread.php?tid=27181)

Pages: 1 2


=>SInclude<= [v1.3] Usefull Functions - Sandra18[NL] - 22.02.2008

I made, beside my Countdown-include, a Pocketmoney-include.
I decided to add them together to 1 include:

SInclude
This Includes: Update History:

[V1.0] <<<<========== Click for more explanation [V1.1] <<<<========== Click for more explanation [V1.2] <<<<========== Click for more explanation [V1.3] <<<<========== Click for more explanation [FS]SpawnPositionCreator <<<<========== Click for more explanation

With this filterscript you can easily create ready-to-use AddSpawnPos-functions
You can save a position using: /savespawnpos (+ comment (optional))
Код:
SavedSpawnPositions.txt
Interiors and VirtualWorlds are supported!


Notes:
- If a 'public' countdown is already started, you cant start a player-countdown
- If a player-countdown is running, and a public-countdown gets created, the player-countdown will stop.


Installing:
Put the file 'SInclude.inc' here:
Servermap/Pawno/Include

Then put on top of your gamemode:
Код:
#include <SInclude>
Download:
SpawnPositionCreator
- SpawnPositionSaver.pwn (Mediafire)
- SpawnPositionSaver.amx (Mediafire)

[V1.3]
- MediaFire

[V1.2]
- MediaFire
- PasteBin

[V1.1]
- MediaFire
- Pastebin

[V1.0]
- MediaFire
- Pastebin
- Crazyhost (Thanks Numhaken)
Note: If you're gonna use V1.0, the include is called: Countdown.inc
Mirrors are welcome

Please Keep Credits!


If you find bugs, or do you have ideas or tips, please post them here.

Have fun with it!

=>Sandra<=




Re: [INC]Countdown by =>Sandra<= - Numhaken - 22.02.2008

Nice!

Mirror
http://www.crazyhost.info/download.p...0Countdown.inc


Re: [INC]Countdown by =>Sandra<= - Barret - 22.02.2008

very very nice!
i like it
good job ;|


Re: [INC]Countdown by =>Sandra<= - LarzI - 22.02.2008

Love it! Was just looking for something like this! TYVM! I'll add you to the credits


Re: [INC]Countdown by =>Sandra<= - Abhishek - 22.02.2008

cool!!! i was thinking to make something like this yesterday, now... no need :P tnx!


Re: [INC]Countdown by =>Sandra<= - Sandra18[NL] - 22.02.2008

[V1.0] CreateCountdown = This will create a countdown for all players. If sound is enabled, you will hear beeps.
StopCountdown = This will stop the countdown if it is running.
CreatePlayerCountdown = This will create a countdown for only 1 player
StopPlayerCountdown = This will stop a player-countdown



Re: [INC]Countdown by =>Sandra<= - snipe69 - 22.02.2008

nice script

P.S.: Are u girl or guy? coz sandra is girl name in my country


Re: [INC]Countdown by =>Sandra<= - Sandra18[NL] - 22.02.2008

Quote:
Originally Posted by $SnIpE$
nice script

P.S.: Are u girl or guy? coz sandra is girl name in my country
In my country too, so yes, im a girl.
But does it matter?


Re: [INC]Countdown by =>Sandra<= - Antironix - 22.02.2008

Quote:
Originally Posted by =>Sandra<=
Quote:
Originally Posted by $SnIpE$
nice script

P.S.: Are u girl or guy? coz sandra is girl name in my country
In my country too, so yes, im a girl.
But does it matter?
Most of us are nerds.. sooooooo xD ( not me)


Re: [INC]Countdown by =>Sandra<= - eldiablo1337 - 22.02.2008

Nerds && Gicks (not me either )

Realy nice release, Sandra.. i like it :]
Would you like a mirror? direct one > through my FTP.


Re: =>SInclude<= [v1.1] Usefull Functions by =>Sandra<= - Sandra18[NL] - 22.02.2008

New Version, new Name:

SInclude

5 new functions for PocketMoney! EnablePocketMoney = All players will get some money after some time
DisablePocketMoney = To stop the server from giving players Pocketmoney
SetPocketMoneyAmount = To change the amount of money the players will get
SetPocketMoneyFrequency = To change the frequency
TogglePocketMoneyMessage = If '1', players will get a message. For Example:
Quote:

You received $500,- Pocketmoney!

if Toggle = 0, players won't receive this message.




Re: =>SInclude<= [v1.1] Usefull Functions by =>Sandra<= - LarzI - 22.02.2008

Like the update, nicely done


Re: =>SInclude<= [v1.2] Usefull Functions by =>Sandra<= - Sandra18[NL] - 22.02.2008

[V1.2] Skydive = Jumping with a parachute from a plane
Cardive = You will get droped with your vehicle
FlipCar = If your car is upsize down, you can flip it back on its wheels
Respray = You will get teleported to a Pay 'n Spray, and when respraying is done, you will get teleported back to your old position
SavePlayerPos = Store the position, angle and interior of a player
LoadPlayerPos = Player will get teleported to the position witch was saved with SavePlayerPos(playerid);


Re: =>SInclude<= [v1.2] Usefull Functions by =>Sandra<= - Maikel - 22.02.2008

Nice, it's very simply for make good commands with this include. Good word .



Re: =>SInclude<= [v1.2] Usefull Functions by =>Sandra<= - LarzI - 22.02.2008

Tyvm Really needed the respray function for my script Thanks a lot


Re: =>SInclude<= [v1.3] New: Random-Spawn-Functions - Sandra18[NL] - 26.02.2008

[V1.3] AddSpawnPos = Add a position where a player can spawn to your gamemode.
You can put this function under OnGameModeInit, or you can use this function ingame.
Example:
Код:
if(strcmp(cmd, "/savepos", true) == 0)
{
  new Float:X, Float:Y, Float:Z, Float:A, interior, vw;
  GetPlayerPos(playerid, X, Y, Z);
  GetPlayerFacingAngle(playerid, A);
  interior = GetPlayerInterior(playerid);
  vw = GetPlayerVirtualWorld(playerid);
  AddSpawnPos(X, Y, Z, A, interior, vw);
  return 1;
}
Note: Positions you created ingame, won't get saved after server-restart!!!

RandomSpawnPlayer = This function will teleport a player to one of the postions created with AddSpawnPos.
You can put this function under OnPlayerSpawn




Re: =>SInclude<= [v1.3] New: Random-Spawn-Functions - LarzI - 27.02.2008

Love this include, nicely done


Re: =>SInclude<= [v1.3] New: Random-Spawn-Functions - cmg4life - 27.02.2008

very nice Sandra

also could u make the a "RandomSpawnInArea(playerid, area max X, area max Y, area min X, area min Y);" ?

anyways its neat


Re: =>SInclude<= [v1.3] Usefull Functions - Sandra18[NL] - 27.02.2008

Thankss

I made a very small Filterscript to create SpawnPositions very easy.

With this filterscript you can easily create ready-to-use AddSpawnPos-functions
You can save a position using: /savespawnpos (+ comment (optional))
Positions will get saved in the file:
Код:
SavedSpawnPositions.txt
Interiors and VirtualWorlds are supported!

The download-urls are in the first post!!

Have fun


Re: =>SInclude<= [v1.3] Usefull Functions - Zh3r0 - 01.04.2008

Damn Damn Damn thx Sandra ur the best