spikes is not being created
#1

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;
    }
Reply
#2

bump
Reply
#3

show the CreateStrip function
Reply
#4

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

bump
Reply
#6

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

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...
Reply
#8

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

Can anyone help me?
Reply
#10

bump
Reply


Forum Jump:


Users browsing this thread: 5 Guest(s)