már müködik de nem rak be randomba zombiba :/
151 sor:
public OnPlayerSpawn(playerid)
{
PlayerInfo[random(OnlinePlayerek)]=ZOMBI;
if(gTeam[playerid] == HUNTER)
{
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -327.1956,1534.4230,75.3594);
SetPlayerColor(playerid,HUNTERSZIN);
GivePlayerWeapon(playerid,27,500); //Combat Shotgun
GivePlayerWeapon(playerid,30,500); //AK-47
GivePlayerWeapon(playerid,24,500); //Desert Eagle
GivePlayerWeapon(playerid,4,500); //Kés
SetPlayerArmour(playerid, 100); //Páncél
SetPlayerTime(playerid, 0, 0);
SetPlayerWeather(playerid, 32);
}
else if(gTeam[playerid] == ZOMBI)
{
SetPlayerColor(playerid,ZOMBISZIN);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, -317.0840,1752.0144,42.7404);
GivePlayerWeapon(playerid,4,500); //Kés
SetPlayerTime(playerid, 0, 0);
SetPlayerWeather(playerid, 32);
}
return 1;
}