09.07.2012, 22:30
Hello,
I have create some gangzones on my server and saved each gangzone on the script like this:
Now I want to make it so if a player is inside the turf that is in a gang, it starts a "turf war" after 30 seconds or so..
My only idea of how i can do this is by having a random timer that runs every 30 wseconds that checks to see all the players positions in the server and starts a gang war if the player is inside an enemy turf AND the player is in a gang.
Any ideas would be great!
I have create some gangzones on my server and saved each gangzone on the script like this:
pawn Код:
enum gZone
{
gID, // ID of the gangzone
gGangID, // The Gang ID it belongs to (0 for NOT TAKEN)
Float:gLeft, // Min X
Float:gBottom, // Min Y
Float:gRight, // MAX X
Float:gTop, // Max Y
};
new GangZone[15+1][gZone];
My only idea of how i can do this is by having a random timer that runs every 30 wseconds that checks to see all the players positions in the server and starts a gang war if the player is inside an enemy turf AND the player is in a gang.
Any ideas would be great!