09.09.2010, 11:07
(
Последний раз редактировалось Matej_; 09.09.2010 в 11:29.
)
I need help with this:
I made a timer so after 5 seconds bomb will explode,
I already made a command to plant a bomb I just need a help with this.
Here is a code:
And here is a command to plant a bomb:
I made a timer so after 5 seconds bomb will explode,
I already made a command to plant a bomb I just need a help with this.
Here is a code:
pawn Код:
forward Bomb();
public Bomb()
{
new Float:X, Float:Y, Float:Z;
new playerid;
Timer1 = SetTimerEx("Bomb",5000,false,"d",playerid);
CreateExplosion(X, Y, Z, 2, 2);
KillTimer(Timer1);
}
pawn Код:
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
if(response)
{
switch(dialogid)
{
case 1:
{
switch(listitem)
{
case 0:
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
CreateObject(1252, X, Y, Z, 0.0, 0.0, 96.0);
}
} }
}
}