05.11.2012, 14:28
Hey guys, i wondered how to do delay that when you write the command (for example 5 seconds after) the action will happen.
Example:
[CMD:fire(playerid, params[])]
The way it should happen:
when player is writing /fire:
SendClientMessage(Playerid, color_White, "arming the fire"); (5 seconds)
Then its showing the player a GameTextForPlayer: ~~~~~~~~%s Seconds Left~~~~~~~~
and then after 5 seconds, it will say SendClientMessage(Playerid, color_White, "fire is armed you can now fire the missle (( using /firemissle ))");
But he may use /firemissle only after he used /fire
I am breaking my head how to do it. if someone can help me i will be greatful
-BoomShnizel-
Example:
[CMD:fire(playerid, params[])]
The way it should happen:
when player is writing /fire:
SendClientMessage(Playerid, color_White, "arming the fire"); (5 seconds)
Then its showing the player a GameTextForPlayer: ~~~~~~~~%s Seconds Left~~~~~~~~
and then after 5 seconds, it will say SendClientMessage(Playerid, color_White, "fire is armed you can now fire the missle (( using /firemissle ))");
But he may use /firemissle only after he used /fire
I am breaking my head how to do it. if someone can help me i will be greatful
-BoomShnizel-