C:\Documents and Settings\Customer\Desktop\My scripts\Gamemode.pwn(712) : warning 225: unreachable code
if(gTeam[playerid] == TEAM_ADMINISTRATORS && ( !IsPlayerAdmin(playerid) && !IsPlayerAdmin(playerid) ) ) { ForceClassSelection(playerid); return SetPlayerHealth(playerid, 0.0); 712) if(team == TEAM_BALLAS) //0, 1, 2 { SetPlayerColor(playerid,COLOR_TEAM_BALLAS); SetPlayerFacingAngle(playerid,270.0); SetPlayerInterior(playerid,5); }
if((gTeam[playerid] == TEAM_ADMINISTRATORS) && (!IsPlayerAdmin(playerid)) { ForceClassSelection(playerid); return SetPlayerHealth(playerid, 0.0); } if(team == TEAM_BALLAS) //0, 1, 2 { SetPlayerColor(playerid,COLOR_TEAM_BALLAS); SetPlayerFacingAngle(playerid,270.0); SetPlayerInterior(playerid,5); }
Originally Posted by T.I.
&& ( !IsPlayerAdmin(playerid) && !IsPlayerAdmin(playerid) ) )
|
Originally Posted by T.I.
if(team == TEAM_BALLAS)
|
if(gTeam[playerid] == TEAM_ADMINISTRATORS && !IsPlayerAdmin(playerid))
{
ForceClassSelection(playerid);
return SetPlayerHealth(playerid, 0.0);
}
else if(gTeam[playerid]== TEAM_BALLAS) //0, 1, 2
{
SetPlayerColor(playerid,COLOR_TEAM_BALLAS);
SetPlayerFacingAngle(playerid,270.0);
SetPlayerInterior(playerid,5);
}
C:\Documents and Settings\Customer\Desktop\My scripts\Gamemode.pwn(726) : warning 225: unreachable code C:\Documents and Settings\Customer\Desktop\My scripts\Gamemode.pwn(930) : error 017: undefined symbol "PropertyExists" C:\Documents and Settings\Customer\Desktop\My scripts\Gamemode.pwn(931) : error 017: undefined symbol "PropertyGet" C:\Documents and Settings\Customer\Desktop\My scripts\Gamemode.pwn(1107) : error 017: undefined symbol "PropertyExists" C:\Documents and Settings\Customer\Desktop\My scripts\Gamemode.pwn(1108) : error 017: undefined symbol "PropertyGet"
new string[256], mute; format(string,sizeof(string),"muted.%d",playerid); 930 if(PropertyExists(string)) { 931 mute = strval(PropertyGet(string)); if(mute == 1) { return 0; } } if(text[0] == '@') { TeamChat(playerid, text); return 0; }
stock IsAdmin(playerid) { new xplayerid[20], level; format(xplayerid,20,"player=%d.level",playerid); if(PropertyExists(xplayerid)) { level = strval(PropertyGet(xplayerid)); if(IsPlayerAdmin(playerid)) { level = 6; } if(level > 2) { return level; } } return 0; } //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ stock IsMuted(playerid) { new string[20], mute; format(string,sizeof(string),"muted.%d",playerid); if(PropertyExists(string)) { mute = strval(PropertyGet(string)); if(mute == 1) { return 1; } } return 0; }
new teamColors[MAX_TEAMS] = { COLOR_TEAM_GROVE, COLOR_TEAM_COPS, COLOR_TEAM_BALLAS, COLOR_TEAM_VAGOS, COLOR_TEAM_AZTECAS, COLOR_TEAM_BIKERS, COLOR_TEAM_ARMY, COLOR_TEAM_RAPPERS, COLOR_TEAM_CLUCKIN, COLOR_TEAM_DEALERS, COLOR_TEAM_ADMINONLY }; new teamName[MAX_TEAMS][32] = { "Grove Families", "Cops", "Ballas", "Vagos", "Aztecas", "Bikers", "Army", "Rappers", "Chickens", "Drug Dealers", "Admins" };