SA-MP Forums Archive
A little bug at OnPlayerRequestClass..... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: A little bug at OnPlayerRequestClass..... (/showthread.php?tid=146587)



A little bug at OnPlayerRequestClass..... - Pawno_Master - 08.05.2010

Код:
public OnPlayerRequestSpawn(playerid)
{
  if(pClass[playerid] == 0 && gTeam[playerid] != TEAM_GROVE)
  {
    SendClientMessage(playerid,0xAA3333AA,"You are not a member of Grove Street Families");
    return 0;
  }
  if(pClass[playerid] == 1 && gTeam[playerid] != TEAM_GROVE)
  {
    SendClientMessage(playerid,0xAA3333AA,"You are not a member of Grove Street Families");
    return 0;
  }
  if(pClass[playerid] == 2 && gTeam[playerid] != TEAM_GROVE)
  {
    SendClientMessage(playerid,0xAA3333AA,"You are not a member of Grove Street Families");
    return 0;
  }
  if(pClass[playerid] == 3 && gTeam[playerid] != TEAM_BALLAS)
  {
    SendClientMessage(playerid,0xAA3333AA,"You are not a member of The Rollin' Heightz Ballas");
    return 0;
	}
 	if(pClass[playerid] == 4 && gTeam[playerid] != TEAM_BALLAS)
  {
    SendClientMessage(playerid,0xAA3333AA,"You are not a member of The Rollin' Heightz Ballas");
    return 0;
	}
 	if(pClass[playerid] == 5 && gTeam[playerid] != TEAM_BALLAS)
  {
    SendClientMessage(playerid,0xAA3333AA,"You are not a member of The Rollin' Heightz Ballas");
    return 0;
	}
	if(pClass[playerid] == 6 && gTeam[playerid] != TEAM_VATOS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Vatos Locos");
	  return 0;
	}
	if(pClass[playerid] == 7 && gTeam[playerid] != TEAM_VATOS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Vatos Locos");
	  return 0;
	}
	if(pClass[playerid] == 8 && gTeam[playerid] != TEAM_VATOS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Vatos Locos");
	  return 0;
	}
	if(pClass[playerid] == 9 && gTeam[playerid] != TEAM_AZTECS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Varrios Los Aztecas");
	  return 0;
	}
	if(pClass[playerid] == 10 && gTeam[playerid] != TEAM_AZTECS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Varrios Los Aztecas");
	  return 0;
	}
	if(pClass[playerid] == 11 && gTeam[playerid] != TEAM_AZTECS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Varrios Los Aztecas");
	  return 0;
	}
	if(pClass[playerid] == 12 && gTeam[playerid] != TEAM_COPS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Los Santos Police Department");
		return 0;
	}
	if(pClass[playerid] == 13 && gTeam[playerid] != TEAM_COPS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Los Santos Police Department");
		return 0;
	}
	if(pClass[playerid] == 14 && gTeam[playerid] != TEAM_COPS)
	{
	  SendClientMessage(playerid,0xAA3333AA,"You are not a member of the Los Santos Police Department");
		return 0;
	}

  return 1;
}
it works and all but everytime the things says: You are not a member of Grove Street Families even when I'm on the ballas or lspd skin or any other skin :S
Can someone maybe fix it or who knows the problem?