Help please
#1

This is my requestspawn:

Код:
public OnPlayerRequestSpawn(playerid)
{
  new playername[MAX_PLAYER_NAME];
	if(gTeam[playerid]==Team_Cops) // POLICE
	{
	  if(strcmp(playername,"LVC_Chrham2",false)==0)
	  {
	    SendClientMessage(playerid,COLOR_BLUE,"Welcome to you, Police Officer! You are now on duty and you must do your best to protect Chrham's City!");
	    return 1;
	  }
	  else
	  {
	  	SendClientMessage(playerid,COLOR_BLUE,"Only cops who have applied at the forums can spawn.");
	  	SendClientMessage(playerid,COLOR_BLUE,"http://chrhamrpg.one-forum.net/businesses-f6/");
	  	return 0;
		}
	}
	if(gTeam[playerid]==Team_FBI) // FBI
	{
	  if(strcmp(playername,"LVC_Chrham2",false)==0)
	  {
	    SendClientMessage(playerid,COLOR_BLUE,"Welcome to you, FBI Officer! You are now on duty and you must do your best to protect Chrham's City!");
	    return 1;
	  }
	  else
	  {
	  	SendClientMessage(playerid,COLOR_BLUE,"Only FBI Officers who have applied at the forums can spawn.");
	  	SendClientMessage(playerid,COLOR_BLUE,"http://chrhamrpg.one-forum.net/businesses-f6/");
	  	return 0;
		}
	}
	if(gTeam[playerid]==Team_Army) // ARMY
	{
	  if(strcmp(playername,"LVC_Chrham2",false)==0)
	  {
	    SendClientMessage(playerid,COLOR_BLUE,"Welcome to you guy in the army! You must do your best to protect Chrham's City!");
	    return 1;
	  }
	  else
	  {
	  	SendClientMessage(playerid,COLOR_BLUE,"Only armys who have applied at the forums can spawn.");
	  	SendClientMessage(playerid,COLOR_BLUE,"http://chrhamrpg.one-forum.net/businesses-f6/");
	  	return 0;
		}
	} else {
	return 1;
	}
}
Its supposed to lock the skin for evryone but LVC_Chrham2, but it dont work. Can you helep me?
Reply


Messages In This Thread
Help please - by Chrham_2 - 28.06.2009, 16:43
Re: Help please - by MenaceX^ - 28.06.2009, 16:55
Re: Help please - by Chrham_2 - 28.06.2009, 17:50
Re: Help please - by Cezar - 28.06.2009, 18:21
Re: Help please - by illay - 28.06.2009, 18:32
Re: Help please - by Cezar - 28.06.2009, 18:33
Re: Help please - by Chrham_2 - 28.06.2009, 19:35
Re: Help please - by Chrham_2 - 28.06.2009, 22:01
Re: Help please - by Chrham_2 - 30.06.2009, 14:05

Forum Jump:


Users browsing this thread: 4 Guest(s)