Gang Zone - 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: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Gang Zone (
/showthread.php?tid=370587)
Gang Zone -
Ratchet_xD - 20.08.2012
Hey all.
PWN:
Код:
#include <a_samp>
#pragma tabsize 0
#define COLOR_RED 0xFF3333AA
new area;
public OnFilterScriptInit()
{
area = GangZoneCreate(242.2956,1794.4650,253.8913,1803.5831);
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
GangZoneShowForPlayer(playerid,area,COLOR_RED);
return 1;
}
How I do that function if player write a command in the area , the command won't work ?
Thanks.
Re: Gang Zone -
ThePhenix - 20.08.2012
What command are you talking about?
Explain! because in your PAWNO code I don't see a cmd!
Also use PAWN /PAWN to show PAWNO codes!
Kind regards!
Re: Gang Zone -
Ratchet_xD - 20.08.2012
Yes. In the PWN code isn't any command , because I don't know how do it.
I would like that command "/warps" didn't worked in the area.
Re: Gang Zone -
ThePhenix - 20.08.2012
pawn Код:
checkcmdposition:warp(playerid, params[])
{
if(IsPlayerInRangeOfPoint(playerid, 4.0, -1484.2582, 2653.3225, 55.8359))
{
{
SendClientMessage(playerid, COLOR_GREEN, "You can checkcmdposition in this position");
}
}
else
{
SendClientMessage(playerid, COLOR_GREEN, "You can't checkcmdposition on this position");
}
return 1;
}
This is an example.....