08.04.2016, 19:39
Okay so I'm having a bit of a problem locking two teams for a specific clan tag. So far I was able to lock one of them by using this code below:
Now the problem is, I am trying to lock another team with using the same code I guess but it does not work. How do I lock another team? Please help me I would gladly rep+ you.
Код:
public OnPlayerRequestSpawn(playerid)
{
new
name[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, name, sizeof(name));
if(gTeam[playerid] == TEAM_Cali) {
if (strfind(name, "GwE_", true) == 0) {
return 1;
}
else {
GameTextForPlayer(playerid, "~r~You're not a member of Gang War Elites", 3000, 1);
ForceClassSelection(playerid);
return 0;
}
}
return 1;
}
Now the problem is, I am trying to lock another team with using the same code I guess but it does not work. How do I lock another team? Please help me I would gladly rep+ you.


: error 010: invalid function or declaration