SA-MP Forums Archive
spikes is not being created - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: spikes is not being created (/showthread.php?tid=420550)



spikes is not being created - Don_Cage - 05.03.2013

like the title says... the spikes for this isnt being created.

pawn Код:
if (strcmp(cmd,"/createspike",true) == 0 || strcmp(cmd,"/css",true)==0)
    {
        if(!IsACop(playerid) && !IsAnSd(playerid))
        {
            return SendClientMessage(playerid,COLOR_GREY,"   You are not a Cop / FBI / SAST / NG !");
        }
        if(PlayerInfo[playerid][pMember] == 1)
        {
            if(PlayerInfo[playerid][pRank] < 2)
            {
                return SendClientMessage(playerid,COLOR_GREY,"   Your rank is too low to be deploying spike strips !");
            }
        }
        else
        {
            if(PlayerInfo[playerid][pRank] < 2)
            {
                return SendClientMessage(playerid,COLOR_GREY,"   Your rank is too low to be removing spike strips !");
            }
        }
        if(IsPlayerInAnyVehicle(playerid))
        {
            return SendClientMessage(playerid,COLOR_GREY,"   You cannot place a spike strip while inside a vehicle !");
        }
        new Float:plocx,Float:plocy,Float:plocz,Float:ploca;
        GetPlayerPos(playerid, plocx, plocy, plocz);
        GetPlayerFacingAngle(playerid,ploca);
        CreateStrip(plocx,plocy,plocz,ploca);
        format(string, sizeof(string), "HQ: %s %s has placed a spike strip at %s", PlayerName(playerid));
        SendRadioMessage(1, TEAM_BLUE_COLOR, string);
        SendRadioMessage(2, TEAM_BLUE_COLOR, string);
        SendRadioMessage(3, TEAM_BLUE_COLOR, string);
        SendRadioMessage(5, TEAM_BLUE_COLOR, string);
        ApplyAnimation(playerid, "BOMBER","BOM_Plant_Loop",4.0,0,0,0,0,0); // Plant bomb
        return 1;
    }



Re: spikes is not being created - Don_Cage - 06.03.2013

bump


Re: spikes is not being created - Glad2BeHere - 06.03.2013

show the CreateStrip function


Re: spikes is not being created - Don_Cage - 10.03.2013

got none, i got it as
pawn Код:
#include <SpikeStrip>



Re: spikes is not being created - Don_Cage - 11.03.2013

bump


Re: spikes is not being created - Denying - 11.03.2013

Just a little question, when you create the spike object with CreateObject, when you drive over it.. will your tires get torned?


Re: spikes is not being created - Smikkeltoetje - 11.03.2013

Quote:
Originally Posted by Denying
Посмотреть сообщение
Just a little question, when you create the spike object with CreateObject, when you drive over it.. will your tires get torned?
They won't be torned.


[OT]

Where is the object ID for the code to create the Spike Strip?
So it should know what to create...


Re: spikes is not being created - Don_Cage - 13.03.2013

isnt that it?
pawn Код:
CreateStrip(plocx,plocy,plocz,ploca);



Re: spikes is not being created - Don_Cage - 13.03.2013

Can anyone help me?


Re: spikes is not being created - Don_Cage - 21.03.2013

bump