Infected Will this work
#9

Well I never really learned strtok. But here's a concept :

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(cTeam[playerid] == ZOMBIE)
        if(newkeys & KEY_FIRE)
        {
            if(GetPlayerWeapon(playerid) == 4)
            {
                new Float:x, Float:y, Float:z;
                GetPlayerPos(playerid, x, y, z);
                if(IsPlayerInRangeOfPoint(playerid2, x+2, y+2, z)) return Infected(playerid2);
                return 1;
            }

        }

    return 1;
}
Just use strtok for the detection of playerid2
Reply


Messages In This Thread
Infected Will this work - by Kitten - 31.10.2010, 23:04
Re: Infected Will this work - by Kitten - 31.10.2010, 23:44
Re: Infected Will this work - by Jaxson - 01.11.2010, 03:39
Re: Infected Will this work - by Zamaroht - 01.11.2010, 03:59
Re: Infected Will this work - by (SF)Noobanatior - 01.11.2010, 04:46
Re: Infected Will this work - by Kitten - 01.11.2010, 05:55
Re: Infected Will this work - by ViruZZzZ_ChiLLL - 01.11.2010, 06:03
Re: Infected Will this work - by Kitten - 01.11.2010, 06:18
Re: Infected Will this work - by ViruZZzZ_ChiLLL - 01.11.2010, 06:29
Re: Infected Will this work - by (SF)Noobanatior - 01.11.2010, 06:32

Forum Jump:


Users browsing this thread: 1 Guest(s)