SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 23/06/2016, 11:35 AM   #1
AlterEGO
Big Clucker
 
AlterEGO's Avatar
 
Join Date: Jun 2014
Posts: 54
Reputation: 0
Question Just wondering if it's possible, and if there's any ideas.

So, I thought about a system for my server which could solve the 'greenzone' problem. I honestly, never liked that rule and found it so.. limited. That's why I thought about something, and I think i've seen it before. The idea is like that: When someone creates a shootout in public places such as: Idle-gas, Pizza stack etc. The police will have knowledge of the location of the ongoing shootout. That way, I could create OOC fear in players before creating a shootout in a public place. So, if any of you guys have any ideas of how I should do it, I'll gladly hear it.
AlterEGO is offline   Reply With Quote
Old 23/06/2016, 03:53 PM   #2
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: Just wondering if it's possible, and if there's any ideas.

Specify what you actually want ideas on.

1. how to detect "when someone creates a shootout".
2. how to detect "when someone creates a shootout in public places".
3. how to let the police have knowledge of the location of the ongoing shootout.

1, 2 or 3?
[KHK]Khalid is offline   Reply With Quote
Old 23/06/2016, 04:10 PM   #3
Sew_Sumi
Banned
 
Join Date: Jun 2008
Location: Azerbaijan
Posts: 6,243
Reputation: 525
Default Re: Just wondering if it's possible, and if there's any ideas.

"OOC Fear"... Damn, I'd have thought it was IC fear due to it being in the game and all.


OnPlayerWeaponShot
if(IsAGangMember(playerid)&&!GreenActive[playerid])
GetPlayerPos
GreenZone[playerid] = CreateGangZone x+30 y+30 x-30 y-30
GreenActive[playerid] = 1;
foreach(i, player)
ShowGangZoneforPlayer(i)


If you use the streamer, that could make things a bit easier in some way. You can then use OnPlayerEnterArea and other good streamer functions to do good stuff.
Sew_Sumi is offline   Reply With Quote
Old 28/06/2016, 05:21 PM   #4
AlterEGO
Big Clucker
 
AlterEGO's Avatar
 
Join Date: Jun 2014
Posts: 54
Reputation: 0
Default Re: Just wondering if it's possible, and if there's any ideas.

Quote:
Originally Posted by [KHK]Khalid View Post
Specify what you actually want ideas on.

1. how to detect "when someone creates a shootout".
2. how to detect "when someone creates a shootout in public places".
3. how to let the police have knowledge of the location of the ongoing shootout.

1, 2 or 3?
That'd be option 2.
AlterEGO is offline   Reply With Quote
Old 28/06/2016, 10:43 PM   #5
TakeiT
Gangsta
 
Join Date: May 2014
Location: Toronto, Canada
Posts: 738
Reputation: 157
Default Re: Just wondering if it's possible, and if there's any ideas.

use AreaCheck, and OnPlayerWeaponShot. Make sure lagcomp is enabled. I would personally make it in game with a command.
TakeiT is offline   Reply With Quote
Old 29/06/2016, 04:24 AM   #6
[KHK]Khalid
Gangsta
 
[KHK]Khalid's Avatar
 
Join Date: Jan 2012
Location: Alexandria, Egypt
Posts: 854
Reputation: 136
Default Re: Just wondering if it's possible, and if there's any ideas.

Quote:
Originally Posted by AlterEGO View Post
That'd be option 2.
IsPlayerInRangeOfPoint and OnPlayerWeaponShot.
[KHK]Khalid is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Just wondering? Beckett Scripting Help 1 05/02/2014 02:31 PM
Hey I was wondering... retart441 Help Archive 1 25/12/2010 10:40 PM
Now im wondering? typedef Help Archive 3 15/07/2010 12:17 PM
I was wondering about.. Akieboe General 4 25/02/2010 01:49 PM


All times are GMT. The time now is 08:15 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.