04.11.2010, 17:52
Something like:
And as for /human try:
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.
Код:
public OnPlayerDeath(playerid, killerid, reason) { SetPlayerTeam(playerid, TEAM_ZOMBIE);? (Or what ever team zombie is called for you). return 1; }
Код:
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; }
Sorry if its wrong.