(help) with change team comand
#10

ok so is this corйct
Код:
new killedAHuman[MAX_PLAYERS];
OnPlayerDeath

Код:
if(infected[playerid] > 0 || team[killerid] == 2)
	{
		GetPlayerName(playerid, player,sizeof(player));
		GetPlayerName(killerid, killer,sizeof(killer));
		format(string,sizeof(string), "%s has been turned into a zombie by %s(zombie)", player, killer);
		killedAHuman[killerid] = true;
	}
the cmd

Код:
	if(strcmp(cmd, "/human", true) ==0)
	{
	    if(team[playerid] == 2) return SendClientMessage(playerid, YELLOW, "you must be human");
	    if(killedAHuman == true)
	    {
	        team[playerid] = 1;
	        SendClientMessage(playerid,GREEN,"you turn to a human.");
	        return 1;
 		}
		else
 		{
			SendClientMessage(playerid,GREEN,"you turn to a human.");
 			return 1;
 		}
	}
Reply


Messages In This Thread
(help) with change team comand - by Amine_Mejrhirrou - 19.01.2011, 17:05
Re: (help) with change team comand - by WillyP - 19.01.2011, 17:06
Re : (help) with change team comand - by Amine_Mejrhirrou - 19.01.2011, 17:10
Re: (help) with change team comand - by WillyP - 19.01.2011, 17:12
Re : (help) with change team comand - by Amine_Mejrhirrou - 19.01.2011, 17:25
Re: (help) with change team comand - by Ironboy - 19.01.2011, 17:37
Re : Re: (help) with change team comand - by Amine_Mejrhirrou - 19.01.2011, 17:43
Re: (help) with change team comand - by Ironboy - 19.01.2011, 17:45
Re: (help) with change team comand - by Macluawn - 19.01.2011, 18:25
Re : (help) with change team comand - by Amine_Mejrhirrou - 19.01.2011, 18:55

Forum Jump:


Users browsing this thread: 2 Guest(s)