29.07.2013, 14:41
So I created a gang zone
But it is not a gang zone so let me change that.
If the player is in this area how would I do it
Would I do it like this?
Basically what I want to do is if the player is in that area he is not allowed to spawn any planes/helicopters I think I know how to do that bit.
Would that be correct?
pawn Код:
new GZ_ZONE1;
GZ_ZONE1 = GangZoneCreate(-128.90625,2371.09375,492.1875,2617.1875);
GangZoneShowForAll(GZ_ZONE1, 0x00FF0083);
pawn Код:
new HOME1;
HOME1 = GangZoneCreate(-128.90625,2371.09375,492.1875,2617.1875);
GangZoneShowForAll(HOME1, 0x00FF0083);
pawn Код:
if(IsPlayerInRangeOfPoint(playerid, -128.90625,2371.09375,492.1875,2617.1875)
Basically what I want to do is if the player is in that area he is not allowed to spawn any planes/helicopters I think I know how to do that bit.
pawn Код:
CMD:plane(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, -128.90625,2371.09375,492.1875,2617.1875)
{
// GIVE THE PLAYER THE VEHICLE
}
else SendClientMessage(playerid, RED, "You are not allowed to spawn a airplane here...");
return 1;
}