[FilterScript] Mine system
#1



Mine System
Hello, I am new here and I'd like to show you one of my filterscripts.
It's Mine system.
You can buy mine, put it down and wait until some player enter the mine.
A lot of things are changable in .pwn file on top of the script like command to put mine down, price of mine, dialog id...
Your mine can't kill you.
You will be informed, who has died by your mine.

Commands:
/buymine - Buy mine for 5000$
/destroymine - Destroy bought mine
/putmine - Put mine down
/mineinfo
Button H - Put mine down

Video:
https://www.youtube.com/watch?v=apZPtwBDDvE

Download:
http://www.solidfiles.com/d/5e3c2632e2/MineSystem.rar

Enjoy
Reply
#2

Nice .
Reply
#3

Thanks
Reply
#4

its Cool Man Nice Keep UP Working +Rep
Reply
#5

pawn Код:
stock IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius)
There is IsPlayerInRangeOfPoint() furthermore it is pretty silly to use OnPlayerUpdate() just use the streamer plugin and dynamic areas everyone uses the plugin it is standard then you wouldn't even need to use range checking at all.

You didn't delete all the objects on OnFilterScriptExit()

There is absolutely no need for what you do in OnPlayerConnect() it is already done in OnPlayerDisconnect()
Reply
#6

Quote:
Originally Posted by Pottus
Посмотреть сообщение
pawn Код:
stock IsPlayerInSphere(playerid,Float:x,Float:y,Float:z,radius)
There is IsPlayerInRangeOfPoint() furthermore it is pretty silly to use OnPlayerUpdate() just use the streamer plugin and dynamic areas everyone uses the plugin it is standard then you wouldn't even need to use range checking at all.

You didn't delete all the objects on OnFilterScriptExit()

There is absolutely no need for what you do in OnPlayerConnect() it is already done in OnPlayerDisconnect()
You've right, I forgot, that function IsPlayerInRangeOfPoint exists too.
Destroy all the objects when filterscript is unloaded is good idea too.
I try to avoid plugins, because many hostings don't allow them.
Anyways, thanks for your advices.
Reply
#7

pawn Код:
public OnPlayerUpdate(playerid)
{
    // Areas
    print("Test");
    return 1;
}
Look at the spam in the console. Now imagine that x5, as if 5 players are online.
You really should use the streamer plugin. I don't think any host doesn't allow them.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)