An Infecting problem
#10

i dont think so :S

heres the onplayerspawn
Код:
public OnPlayerSpawn(playerid)
{
	SetPlayerInterior(playerid,0);

	if(gTeam[playerid] == TEAM_HUMAN) {
 	SetPlayerHealth(playerid,50.0);
  GameTextForPlayer(playerid,"~w~Stay With other Survivors!",6000,5);
	SendClientMessage(playerid,0xFF000096,"if you need help /help");
	SendClientMessage(playerid,0xFF000096,"NB: Zombies have 200 Health");
  TextDrawHideForPlayer(playerid,Textdraw);
  TextDrawHideForPlayer(playerid,Textdraw);
  TextDrawHideForPlayer(playerid,Textdraw2);
  TextDrawHideForPlayer(playerid,Textdraw2);
  TogglePlayerClock(playerid, 1);
	}
	else if(gTeam[playerid] == TEAM_ZOMBIE) {
  GameTextForPlayer(playerid,"~w~Kill All The ~g~ Survivors",6000,5);
  	SendClientMessage(playerid,0xFF000096,"Type /commands");
  TextDrawHideForPlayer(playerid,Textdraw);
  TextDrawHideForPlayer(playerid,Textdraw);
  TextDrawHideForPlayer(playerid,Textdraw2);
  TextDrawHideForPlayer(playerid,Textdraw2);
  TogglePlayerClock(playerid, 1);
  new iRandom = random(sizeof(RandomSpawn));
  SetPlayerPos(playerid, RandomSpawn[iRandom][0], RandomSpawn[iRandom][1],RandomSpawn[iRandom][2]);
  SetPlayerFacingAngle(playerid, RandomSpawn[iRandom][3]);
  SetPlayerInterior(playerid, 0);
  SetPlayerVirtualWorld(playerid, 0);
}

	return 1;
}
Reply


Messages In This Thread
An Infecting problem - by WardenCS - 07.12.2009, 15:30
Re: An Infecting problem - by WardenCS - 07.12.2009, 17:23
Re: An Infecting problem - by miokie - 07.12.2009, 17:33
Re: An Infecting problem - by WardenCS - 07.12.2009, 17:39
Re: An Infecting problem - by miokie - 07.12.2009, 17:41
Re: An Infecting problem - by WardenCS - 07.12.2009, 17:59
Re: An Infecting problem - by miokie - 07.12.2009, 18:02
Re: An Infecting problem - by WardenCS - 07.12.2009, 18:04
Re: An Infecting problem - by miokie - 07.12.2009, 18:22
Re: An Infecting problem - by WardenCS - 07.12.2009, 18:31

Forum Jump:


Users browsing this thread: 1 Guest(s)