Virtual World Shooting
#5

pawn Код:
if(IsPlayerInArea(playerid, ammu_x, ammu_y, ammu_z);
{
    if(newkeys == KEY_FIRE)
    {
        SetPVarInt(playerid, "ShootingAmmu", GetPVarInt(playerid, "ShootingAmmu")+1);
    }
    if(GetPVarInt(playerid, "ShootingAmmu") == 3)
    {
        // jail command
        SetPVarInt(playerid, "ShootingAmmu", 0); // 0 resets the pvar
    }
}
Add that at OnPlayerKeyStateChange
Reply


Messages In This Thread
Virtual World Shooting - by Rolyy - 13.08.2010, 22:10
Re: Virtual World Shooting - by akis_tze - 13.08.2010, 22:17
Re: Virtual World Shooting - by Cameltoe - 13.08.2010, 22:30
Re: Virtual World Shooting - by Rolyy - 14.08.2010, 12:15
Re: Virtual World Shooting - by Claude - 14.08.2010, 12:20
Re: Virtual World Shooting - by Rolyy - 14.08.2010, 12:24
Re: Virtual World Shooting - by playbox12 - 14.08.2010, 12:29
Re: Virtual World Shooting - by Rolyy - 14.08.2010, 12:32
Re: Virtual World Shooting - by Vince - 14.08.2010, 12:37
Re: Virtual World Shooting - by playbox12 - 14.08.2010, 12:40

Forum Jump:


Users browsing this thread: 6 Guest(s)