14.06.2009, 15:57
Im making a plant c4 command for gangs on my rp,
And when they say the command it plants explosive,
But i dont know how to get the timer to pickup the playerspos when they type the command,
Any help?
And when they say the command it plants explosive,
But i dont know how to get the timer to pickup the playerspos when they type the command,
pawn Код:
if (strcmp("/plantc4", cmdtext, true) == 0)
{
new Float:BX, Float:BY, Float:BZ;
GetPlayerPos(playerid,BX,BY,BZ);
ApplyAnimation(playerid,"BOMBER","BOMB_PLANT",4.1,1,1,1,1,1);
SetTimer("C4",10000,false);
return 1;
}
public C4(playerid)
{
CreateExplosion(playerid,BX,BY,BZ);
}