if(TeamInfo[i][tName] == PlayerName(playerid))
stock PlayerName(playerid)
{
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, MAX_PLAYER_NAME);
return pName;
}
Strings cannot be checked like that, use strcmp
|
strmid(TeamInfo[i][tName], dini_Get(file, "Name"), false, strlen(dini_Get(file, "Name")), MAX_PLAYER_NAME);
if(strcmp(TeamInfo[i][tName], PlayerName(playerid)))
{
found = true;
if(TeamInfo[i][tMember] == 1)
{
MoveObject(airgate4,395.8703613,2374.1357422,25.8018494,3);
MoveObject(airgate5,380.8940735,2366.1770020,25.8284874,3);
AirCloseTimer[playerid] = SetTimer("AirClose", 4000, true);
}
}
}
}
if(!found) return SendClientMessage(playerid, COLOR_RED, "Not Access!");