24.01.2010, 09:22
Well, there is a small problem.
What I'm trying to do is make a command so when you type /plant it will save that position you are in so later when you type /explode it will create a explosion at that position you saved when you type /plant.
What I'm trying to do is make a command so when you type /plant it will save that position you are in so later when you type /explode it will create a explosion at that position you saved when you type /plant.
Код:
if (strcmp("/Plant", cmdtext, true, 10) == 0)
{
GetPlayerPos(playerid,bombpos); // Here I'm trying to save the bomb pos for the explode part.
return 1;
}
Код:
if (strcmp("/explode", cmdtext, true, 10) == 0)
{
CreateExplosion(bombpos, 12, 10.0); // This is suppose to make a explosion at the area bomb pos which was "suppose" to be saved earlier.
return 1;
}


