23.12.2010, 21:31
It's bomb system.
When you plant the bomb, dialog will show with detonation time. 5 seconds, 10 seconds, etc.
And in OnDialogResponse I have:
And I want to make function "MalaBombaDetonacija" which will check position of this pickup... Understand now? -.-
When you plant the bomb, dialog will show with detonation time. 5 seconds, 10 seconds, etc.
And in OnDialogResponse I have:
pawn Код:
new MalaBombaPickup[MAX_PLAYERS];
public OnDialogResponse(...)
{
if(dialogid == MALABOMBADIALOG)
{
if(listitem == 0)
{
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
MalaBombaPickup[playerid] = AddStaticPickup(1252, 1, X, Y, Z);
SetTimerEx("MalaBombaDetonacija", 5000, false, "d", playerid);
}
}
return 1;
}