08.02.2014, 19:56
Alright, you have to set the owner of the turf AFTER the player has captured it, so following your code it would be
And then check before the player initiates capturing
Consider making protection, if there's more than one person in the turf it will be captured for both.
pawn Код:
public GolfTurfT(playerid)
{
TurfOwner[GolfZone] = playerid;
GangZoneStopFlashForAll(GolfZone);
GivePlayerMoney(playerid, 9000);
}
pawn Код:
if(checkpointid == GolfCP)
{
if(TurfOwner[GolfZone] == playerid)
return 1;
SetTimerEx("GolfTurfT",9000,0,"i",playerid);
GangZoneShowForAll(GolfZone,GetPlayerColor(playerid)); //Old color 0xFF71B896
GangZoneFlashForAll(GolfZone,(playerid));
}