=>SInclude<= [v1.3] Usefull Functions
#1

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

SInclude
This Includes:
  • Countdown
  • PocketMoney
  • CarFunctions
  • Skydiving
  • Saving & Loading player position
  • RandomSpawn-Creator
Update History:

[V1.0] <<<<========== Click for more explanation
  • CreateCountdown(time, sound);
  • CreatePlayerCountdown(playerid, time, sound);
  • StopCountdown();
  • StopPlayerCountdown(playerid);
[V1.1] <<<<========== Click for more explanation
  • EnablePocketMoney(amount, frequency);
  • DisablePocketMoney();
  • SetPocketMoneyAmount(amount);
  • SetPocketMoneyFrequency(seconds);
  • TogglePocketMoneyMessage(toggle);
[V1.2] <<<<========== Click for more explanation
  • SkydivePlayer(playerid, hight);
  • Cardive(carid, hight);
  • FlipCar(carid);
  • ResprayCar(carid);
  • SavePlayerPos(playerid);
  • LoadPlayerPos(playerid);
[V1.3] <<<<========== Click for more explanation
  • AddSpawnPos(X, Y, Z, Angle, Interior, VirtualWorld);
  • RandomSpawnPlayer(playerid);
[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<=

Reply
#2

Nice!

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

very very nice!
i like it
good job ;|
Reply
#4

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

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

[V1.0]
  • CreateCountdown(time, sound);
  • CreatePlayerCountdown(playerid, time, sound);
  • StopCountdown();
  • StopPlayerCountdown(playerid);
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
Reply
#7

nice script

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

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?
Reply
#9

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)
Reply
#10

Nerds && Gicks (not me either )

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

New Version, new Name:

SInclude

5 new functions for PocketMoney!
  • EnablePocketMoney(amount, frequency);
  • DisablePocketMoney();
  • SetPocketMoneyAmount(amount);
  • SetPocketMoneyFrequency(seconds);
  • TogglePocketMoneyMessage(toggle);
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.

Reply
#12

Like the update, nicely done
Reply
#13

[V1.2]
  • SkydivePlayer(playerid, hight);
  • Cardive(carid, hight);
  • FlipCar(carid);
  • ResprayCar(carid);
  • SavePlayerPos(playerid);
  • LoadPlayerPos(playerid);
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);
Reply
#14

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

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

[V1.3]
  • AddSpawnPos(Float:X, Float:Y, Float:Z, Float:Angle, interior, virtualworld);
  • RandomSpawnPlayer(playerid);
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

Reply
#17

Love this include, nicely done
Reply
#18

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

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

Damn Damn Damn thx Sandra ur the best
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)