Gang Turfs
#1

Hello , i followed a tutorial to make gangs and zones but it isn't working correctly . Only the place which are not owned by Groove are working and it only set the hood to Groove . Even after setting SetPlayerTeam . Following is tutorial link.
https://sampforum.blast.hk/showthread.php?tid=467604

Following is my SetPlayerTeam code.
PHP код:
    if(newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.02624.1233,2344.0200,10.8203))
    {
        if(
GetPlayerTeam(playerid) != 4)
        {
            
SetPlayerTeam(playerid4);
            
SendClientMessage(playerid, -1"You have joined Bikers Gang");
        }
    }
    }
    if(
newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.02510.6072,-1678.8037,13.5469))
    {
        if(
GetPlayerTeam(playerid) !=0)
        {
            
SetPlayerTeam(playerid4);
            
SendClientMessage(playerid, -1"You have joined Groove Gang");
        }
    }
    }
    if(
newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.02014.0094,-1279.7596,23.8203))
    {
        if(
GetPlayerTeam(playerid) != 1)
        {
            
SetPlayerTeam(playerid1);
            
SendClientMessage(playerid, -1"You have joined Ballas Gang");
        }
    }
    }
    if(
newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.02186.4109,1662.9487,11.0993))
    {
        if(
GetPlayerTeam(playerid) != 5)
        {
            
SetPlayerTeam(playerid5);
            
SendClientMessage(playerid, -1"You have joined Mafia Gang");
        }
    }
    }
    if(
newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.0, -2153.9688,635.8139,52.3672))
    {
        if(
GetPlayerTeam(playerid) != 6)
        {
            
SetPlayerTeam(playerid6);
            
SendClientMessage(playerid, -1"You have joined Traid Gang");
        }
    }
    }
    if(
newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.0, -1583.2609,44.6099,17.3358))
    {
        if(
GetPlayerTeam(playerid) != 7)
        {
            
SetPlayerTeam(playerid7);
            
SendClientMessage(playerid, -1"You have joined Danang Gang");
        }
    }
    }
    if(
newkeys KEY_WALK)
    {
     if(
IsPlayerInRangeOfPoint(playerid2.0, -2614.1350,1410.5472,7.1399))
    {
        if(
GetPlayerTeam(playerid) != 8)
        {
            
SetPlayerTeam(playerid8);
            
SendClientMessage(playerid, -1"You have joined Rifa Gang");
        }
    }
    } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)