public OnPlayerDeath(playerid, killerid, reason) { if (reason == 9)//Si le tueur а l'arme ID 9 { new pName[MAX_PLAYER_NAME], string[48]; new rand = random(sizeof(RandomSpawn)); SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]); SetPlayerInterior(playerid,0); SetPlayerColor(playerid,COLOR_ZOMBIE); SetPlayerTeam(playerid,1); SetPlayerHealth(playerid, 200); GivePlayerWeapon(playerid, 9, 9999); GetPlayerName(playerid, pName, sizeof(pName)); format(string, sizeof(string), "%s et devenu un zombie.", pName );//turned into zombie SendClientMessageToAll(0xBAC80BFF, string); GameTextForPlayer(playerid, "~y~ZOMBIE", 15000, 4); } return 1; } //---------------------- public OnPlayerSpawn(playerid) { new rand = random(sizeof(RandomSpawn)); SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]); SetPlayerInterior(playerid,0); PlayerPlaySound(playerid,1184,0.0,0.0,0.0); if (gTeam[playerid] == 0) { SetPlayerInterior(playerid,0); SetPlayerColor(playerid,COLOR_CIVIL); SetPlayerTeam(playerid,0); SetPlayerHealth(playerid, 100); GameTextForPlayer(playerid, "~b~CIVIL", 15000, 4); } else if (gTeam[playerid] == 1) { SetPlayerInterior(playerid,0); SetPlayerColor(playerid,COLOR_ZOMBIE); SetPlayerTeam(playerid,1); SetPlayerHealth(playerid, 200); GivePlayerWeapon(playerid, 9, 9999); GameTextForPlayer(playerid, "~y~ZOMBIE", 15000, 4); } return 1; }
Originally Posted by vardanega
person to answer
![]() |