Spike strip Help
#1

Hello all ,

Код:
	if (strcmp(cmd,"/createstrip",true) == 0)
	{
	    if(IsACop(playerid))
		{
			if(OnDuty[playerid] != 1)
			{
			    new Float:X,Float:Y,Float:Z,Float:A;
		        GetPlayerPos(playerid, X, Y, Z);
		        GetPlayerFacingAngle(playerid,A);
		        CreateStrip(X,Y,Z,A);
		        GetPlayerName(playerid, sendername, sizeof(sendername));
		        format(string, sizeof(string), "HQ: Officer %s has successfully deployed a spikestrip.", sendername);
		        SendTeamMessage(1, TEAM_BLUE_COLOR, string);
		        SendTeamMessage(99, TEAM_BLUE_COLOR, string);
		        
			}
		}
	    return 1;
	}
also

Код:
stock CreateStrip(Float:x,Float:y,Float:z,Float:Angle)
{
    for(new i = 0; i < sizeof(SpikeInfo); i++)
  	{
  	    if(SpikeInfo[i][sCreated] == 0)
  	    {
            SpikeInfo[i][sCreated]=1;
            SpikeInfo[i][sX]=x;
            SpikeInfo[i][sY]=y;
            SpikeInfo[i][sZ]=z-0.7;
            SpikeInfo[i][sObject] = CreateDynamicObject(2899, x, y, z-0.9, 0, 0, Angle-90);
	        return 1;
  	    }
  	}
  	return 0;
}
It works and everything , But when a vehicle drives over it , the TIRES don't blow out , any help ?
Reply


Messages In This Thread
Spike strip Help - by ShawnMiller1337 - 18.08.2010, 02:05
Re: Spike strip Help - by RealWorldGTA - 18.08.2010, 02:11
Re: Spike strip Help - by ShawnMiller1337 - 18.08.2010, 02:19
Re: Spike strip Help - by PotH3Ad - 18.08.2010, 02:20
Re: Spike strip Help - by RealWorldGTA - 18.08.2010, 02:22
Re: Spike strip Help - by ShawnMiller1337 - 18.08.2010, 02:24
Re: Spike strip Help - by PotH3Ad - 18.08.2010, 02:28
Re: Spike strip Help - by RealWorldGTA - 18.08.2010, 02:28

Forum Jump:


Users browsing this thread: 5 Guest(s)