07.11.2010, 19:32
Code:
team[playerid] = 2; infected[playerid] = 0; SetPlayerPos(playerid,X,Y,Z); SetPlayerColor(playerid,ZRED); SetPlayerTeam(playerid, 2); SetPlayerHealth(playerid, 200); SetPlayerSkin(playerid,162); GameTextForPlayer(playerid,"~r~Zombie: ~b~/hide",10000,1); return 1; } if(team[playerid] == 1) //Humans { SetPlayerColor(playerid,CYAN); SetPlayerTeam(playerid, 1); GameTextForPlayer(playerid,"~b~~h~Human: ~b~/panic",10000,1); GivePlayerWeapon(playerid,24,300); SetPlayerSkin(playerid,188); GivePlayerWeapon(playerid,25,300); GivePlayerMoney(playerid, 20000); } if(team[playerid] == 2) //Zombies { SetPlayerColor(playerid,ZRED); SetPlayerTeam(playerid, 2); SetPlayerHealth(playerid, 200); SetPlayerSkin(playerid,162); GameTextForPlayer(playerid,"~r~Zombie: ~b~/hide",10000,1); } if(team[playerid] == 4) //Scientists { SetPlayerColor(playerid,WHITE); SetPlayerTeam(playerid, 1); GameTextForPlayer(playerid,"~w~Scientist: ~b~/anti",10000,1); GivePlayerWeapon(playerid,23,300); SetPlayerSkin(playerid, 70); GivePlayerMoney(playerid, 20000); SetPlayerArmour(playerid, 100); } if(team[playerid] == 5) //Doctor { SetPlayerColor(playerid,ORANGE); SetPlayerTeam(playerid, 1); GameTextForPlayer(playerid,"~r~~h~Doctor: ~b~/heal",10000,1); SetPlayerPos(playerid,1624.2527,1821.0498,10.8203); SetPlayerFacingAngle(playerid,5.6779); SetPlayerSkin(playerid,276); GivePlayerWeapon(playerid,24,300); GivePlayerMoney(playerid, 20000); SetPlayerInterior(playerid,0); SetPlayerArmour(playerid, 100); return 1; } if(team[playerid] == 6) //S.T.A.R.S { SetPlayerColor(playerid,0x00FF00FF); SetPlayerTeam(playerid, 1); SetPlayerPos(playerid,1624.2527,1821.0498,10.8203); SetPlayerFacingAngle(playerid,5.6779); SetPlayerSkin(playerid,287); GivePlayerWeapon(playerid,31,300); GivePlayerWeapon(playerid,24,300); GivePlayerMoney(playerid, 20000); SetPlayerInterior(playerid,0); SetPlayerArmour(playerid, 100); return 1; } if(team[playerid] == 3) { GameTextForPlayer(playerid,"ERROR",10000,1); } SetPlayerRandomSpawn(playerid); infected[playerid] = 0; return 1; }