Quote:
Originally Posted by MenaceX^
Quote:
Originally Posted by Ritchie999
Quote:
Originally Posted by Luka™
Use IsPlayerInArea (by Seif_ I think) and then check player team.
If(player_team != gang_zone) bla bla.. I'm sure that you'll figure it out.
I will write the code if I get the time.
|
I'm kind of a scripting beginner so i dont know how to use IsPlayerInArea, i tried using Seifs and got the co-ords but i dont know where to enter them
|
It saves to a file in your scriptfiles folder.
|
i know, but i dont know where to enter the
Код:
stock IsPlayerInArea(playerid, Float:max_x, Float:min_x, Float:max_y, Float:min_y)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(X <= max_x && X >= min_x && Y <= max_y && Y >= min_y) return 1;
return 0;
}
or
Код:
IsPlayerInArea(playerid, 70.06725, -2755.979, 2907.791, -864.1628)