08.04.2016, 21:44
PHP код:
public OnPlayerRequestSpawn(playerid)
{
new
name[MAX_PLAYER_NAME]
;
GetPlayerName(playerid, name, sizeof(name));
if(gTeam[playerid] == TEAM_Cali || gTeam[playerid] == TEAM_WTV u want) //edit here
{
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;
}