05.03.2013, 15:43
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;
}