Hitman C4
#2

Try add this below the /plantbomb and above the "else's".

pawn Код:
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
SetPVarFloat(playerid, "C4x", x);
SetPVarFloat(playerid, "C4y", y);
SetPVarFloat(playerid, "C4z", z);
c4planted[playerid]=1;
And add this on top of your script

pawn Код:
new c4planted [MAX_PLAYERS];
Then make a new command rather than press lmb, like /detonate, and below it you add

pawn Код:
{
if c4planted[playerid]=1;
CreateExplosion(playerid, GetPVarFloat(playerid, "C4x"), GetPVarFloat(playerid, "C4y"), GetPVarFloat(playerid, "C4z"), 0, 10);
return 1;
}
if c4planted[playerid]=0;
{
SendClientMessage(playerid, COLOR_GRAD2, "You don't have a c4 planted");
return 1;
}
Idk if it will work or not lol, but that's the point if you got what I mea (I'm using a cellphone atm btw, so it's kinda hard to do it.
Reply


Messages In This Thread
Fixed. - by Ifreezesir - 11.03.2011, 19:32
Re: Hitman C4 - by [BKR]LUCAGRABACR - 12.03.2011, 00:35
Re: Hitman C4 - by Gh0sT_ - 12.03.2011, 00:46

Forum Jump:


Users browsing this thread: 1 Guest(s)