/bomb can use it just 3 time [How]
#7

Try This
Quote:

CMD:bomb(playerid, params[])
{
if(C4Enabled == 0) return 1;
if (PlayerInfo[playerid][pMember] == 0 || PlayerInfo[playerid][pLeader] ==
{
if (PlayerInfo[playerid][pC4] == 0)
{
if (PlayerInfo[playerid][pBombs] != 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessageEx(playerid, COLOR_LIGHTRED,"You can't plant C4 while in a vehicle!");
return 1;
}
GetPlayerPos(playerid,Positions[0][0], Positions[0][1], Positions[0][2]);
SetPVarFloat(playerid, "DYN_C4_FLOAT_X", Positions[0][0]);
SetPVarFloat(playerid, "DYN_C4_FLOAT_Y", Positions[0][1]);
SetPVarFloat(playerid, "DYN_C4_FLOAT_Z", Positions[0][2]);
PlayerInfo[playerid][pC4] = CreateDynamicObject(1654, Positions[0][0], Positions[0][1], Positions[0][2]-0.9, 0, 89.325012207031, 3.9700012207031);
ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0 ,0,0,0,0);
ApplyAnimation(playerid,"BOMBER","BOM_Plant",4.0,0 ,0,0,0,0);
SendClientMessageEx(playerid, COLOR_GREEN, "You have placed C4 on the ground, /pickupbomb to remove it.");
//PlayerInfo[playerid][pC4] = 3;
PlayerInfo[playerid][pBombs]--;
PlayerInfo[playerid][pC4Used] = 3;
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, "You do not have C4!");
return 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, " You can only deploy 1 C4 at a time ! ");
return 1;
}
}
else
{
SendClientMessageEx(playerid, COLOR_GRAD2, " text here ! ");
}
return 1;
}

Reply


Messages In This Thread
/bomb can use it just 3 time [How] - by [D]ry[D]esert - 09.05.2012, 12:31
Re: /bomb can use it just 3 time [How] - by [D]ry[D]esert - 09.05.2012, 14:02
Re: /bomb can use it just 3 time [How] - by TzAkS. - 09.05.2012, 14:06
Re: /bomb can use it just 3 time [How] - by Skaizo - 09.05.2012, 14:19
Re: /bomb can use it just 3 time [How] - by [D]ry[D]esert - 09.05.2012, 14:48
Re: /bomb can use it just 3 time [How] - by john_jenkins - 09.05.2012, 14:55
Re: /bomb can use it just 3 time [How] - by DamienWalter - 15.05.2012, 12:31

Forum Jump:


Users browsing this thread: 6 Guest(s)