How change player infection from name to numbers
#1

Hi!
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);
To number like (Name_Name has been infected 3 players) so its should count somehow, how much i infect players with explosion. Full code

Код:
    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);
	}
Reply


Messages In This Thread
How change player infection from name to numbers - by henkas - 04.02.2017, 17:00
Re: How change player infection from name to numbers - by Twistedz - 04.02.2017, 21:59
Re: How change player infection from name to numbers - by SyS - 05.02.2017, 04:06
Re: How change player infection from name to numbers - by henkas - 05.02.2017, 06:50
Re: How change player infection from name to numbers - by henkas - 05.02.2017, 06:55
Re: How change player infection from name to numbers - by henkas - 05.02.2017, 06:57
Re: How change player infection from name to numbers - by henkas - 05.02.2017, 07:31

Forum Jump:


Users browsing this thread: 1 Guest(s)