04.02.2017, 17:00
Hi!
I need your help guys so i want remake this script
To number like (Name_Name has been infected 3 players) so its should count somehow, how much i infect players with explosion. Full code
I need your help guys so i want remake this script
Код:
format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been infected by %s",PlayerName(victimid),PlayerName(playerid)); SendClientMessageToAll(-1,zmstring);
Код:
if(PRESSED(KEY_WALK))
{
if(team[playerid] == TEAM_ZOMBIE)
{
if(pInfo[playerid][pZombieClass] == ADVANCEDBOOMER)
{
if(IsPlayerInRangeOfPoint(playerid,8.0,Map[ZombieSpawnX],Map[ZombieSpawnY],Map[ZombieSpawnZ]))
{
GameTextForPlayer(playerid,"~r~You cant explode yourself near zombie spawn!",4000,5);
}
else
{
new victimid = GetClosestPlayer(playerid);
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid,Float:x,Float:y,Float:z);
SetPlayerHealth(playerid,0.0);
CreateExplosion(Float:x,Float:y,Float:z,0,6.0);
foreach(new i : Player)
{
GetClosestPlayer(i);
if(IsPlayerConnected(i))
{
switch(GetPlayerSkin(i))
{
case NON_IMMUNE:
{
if(IsPlayerInRangeOfPoint(i,7.0,Float:x,Float:y,Float:z))
{
if(pInfo[i][IsPlayerInfected] == 0)
{
new zmstring[256];
InfectPlayerStandard(i);
format(zmstring,sizeof(zmstring), ""chat""COL_PINK" %s has been infected by %s",PlayerName(victimid),PlayerName(playerid));
SendClientMessageToAll(-1,zmstring);
}


