19.01.2015, 16:21
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.
https://sampforum.blast.hk/showthread.php?tid=467604
Following is my SetPlayerTeam code.
PHP код:
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2624.1233,2344.0200,10.8203))
{
if(GetPlayerTeam(playerid) != 4)
{
SetPlayerTeam(playerid, 4);
SendClientMessage(playerid, -1, "You have joined Bikers Gang");
}
}
}
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2510.6072,-1678.8037,13.5469))
{
if(GetPlayerTeam(playerid) !=0)
{
SetPlayerTeam(playerid, 4);
SendClientMessage(playerid, -1, "You have joined Groove Gang");
}
}
}
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2014.0094,-1279.7596,23.8203))
{
if(GetPlayerTeam(playerid) != 1)
{
SetPlayerTeam(playerid, 1);
SendClientMessage(playerid, -1, "You have joined Ballas Gang");
}
}
}
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2186.4109,1662.9487,11.0993))
{
if(GetPlayerTeam(playerid) != 5)
{
SetPlayerTeam(playerid, 5);
SendClientMessage(playerid, -1, "You have joined Mafia Gang");
}
}
}
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, -2153.9688,635.8139,52.3672))
{
if(GetPlayerTeam(playerid) != 6)
{
SetPlayerTeam(playerid, 6);
SendClientMessage(playerid, -1, "You have joined Traid Gang");
}
}
}
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, -1583.2609,44.6099,17.3358))
{
if(GetPlayerTeam(playerid) != 7)
{
SetPlayerTeam(playerid, 7);
SendClientMessage(playerid, -1, "You have joined Danang Gang");
}
}
}
if(newkeys & KEY_WALK)
{
if(IsPlayerInRangeOfPoint(playerid, 2.0, -2614.1350,1410.5472,7.1399))
{
if(GetPlayerTeam(playerid) != 8)
{
SetPlayerTeam(playerid, 8);
SendClientMessage(playerid, -1, "You have joined Rifa Gang");
}
}
}