Bulletproof shield.
#1

Hello there, i am trying to make bulletproof shield, and im stuck at it.. ( So far its done for 1 player only, i will ad loops later )

Код:
	if(strcmp(cmd, "/dshild", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
			if (IsPlayerInRangeOfPoint(playerid, 6, 257.1108,78.0250,1003.6406))
			{
			    if(!IsANg(playerid))
			    {
                    SendClientMessage(playerid,COLOR_GREY," Only army deltaforce can use this equipment.");
					return 1;
				}
				shild = SetPlayerAttachedObject(playerid, 8, 18637, 4, 0.3, 0, 0, 0, 170, 270, 1, 1, 1);

	    		return 1;
			}
		}
	}
Код:
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{
	if(hittype == 4)
	{
		if(hitid == shild)
		{
			return 0;
		}
	}
	return 1;
}
Code dosent work as it should... i'v been trying with AttachObjectToPlayer aswell, no result after 2 hours.
Reply


Messages In This Thread
Bulletproof shield. - by kepa333 - 15.03.2015, 20:57
Re: Bulletproof shield. - by Evocator - 15.03.2015, 21:11
Re: Bulletproof shield. - by kepa333 - 15.03.2015, 21:29
Re: Bulletproof shield. - by Smileys - 15.03.2015, 22:55
Re: Bulletproof shield. - by Sew_Sumi - 15.03.2015, 23:00
Re: Bulletproof shield. - by Crayder - 15.03.2015, 23:05
Re: Bulletproof shield. - by Smileys - 15.03.2015, 23:10
Re: Bulletproof shield. - by Abagail - 15.03.2015, 23:32
Re: Bulletproof shield. - by kepa333 - 16.03.2015, 15:59

Forum Jump:


Users browsing this thread: 1 Guest(s)