block team changing
#5

Something like:

Код:
public OnPlayerDeath(playerid, killerid, reason)
{
             SetPlayerTeam(playerid, TEAM_ZOMBIE);? (Or what ever team zombie is called for you).
	return 1;
}
And as for /human try:

Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/human", cmdtext, true, 10) == 0)
	{
              SetPlayerTeam(playerid, TEAM_HUMAN); (Or what ever team humam is called for you).      
 	 return 1;
	}
             return 0;
}
I'm kinda new to scripting but just try it, hopefuly it will do what you wan't, depending on if you have teams...
Sorry if its wrong.
Reply


Messages In This Thread
block team changing - by marinov - 03.11.2010, 23:11
Re: block team changing - by Miguel - 04.11.2010, 03:49
Re: block team changing - by Welsh - 04.11.2010, 10:41
Re: block team changing - by marinov - 04.11.2010, 17:41
Re: block team changing - by Welsh - 04.11.2010, 17:52
Re: block team changing - by marinov - 04.11.2010, 22:49

Forum Jump:


Users browsing this thread: 3 Guest(s)