13.03.2017, 12:22
There is code, why its didn't work. I think i made everything fine.
Code:
if(IsPlayerInRangeOfPoint(killerid,2.0,Map[ZombieSpawnX],Map[ZombieSpawnY],Map[ZombieSpawnZ]) || IsPlayerInRangeOfPoint(killerid,2.0,Map[ZombieSpawn2X],Map[ZombieSpawn2Y],Map[ZombieSpawn2Z])) { SetPlayerHealth(killerid, 0); // my punishment for the Spawn Killer is Death. new zmstring2[256],pNames[MAX_PLAYER_NAME]; GetPlayerName(killerid,pNames,sizeof(pNames)); format(zmstring2,sizeof(zmstring2),""COL_LIGHTBLUE">> %s has been killed for spawn killing.",pNames); SendClientMessageToAll(-1,zmstring2); }