18.01.2015, 09:53
You didn't define teamid anywhere in that callback or loop.
Try this if you want to get the teamid of killerid:
Try this if you want to get the teamid of killerid:
PHP код:
for(new i; i < MAX_ZONES;i++)
{
if(IsPlayerInRangeOfPoint(playerid, 5.0, i) && IsPlayerInRangeOfPoint(killerid, 5.0, i) && gTeam[killerid] != gTeam[playerid])
{
GangZoneShowForAll(i,GetTeamColor(gTeam[killerid]));
SendClientMessage(killerid, COLOR_BLUE, "You had taken this base !");
GivePlayerMoney(killerid, 1000);
return 1;
}
}

