Start command after some time
#1

Hellp,I made a deatchmatch room,to enter there you need to type /dm . I want to make that when he typed /dm ,it will show that player will be teleported to DM room after 10 seconds.

Here is my DM command:
Код:
dcmd_dm(playerid, cmdtext[]) {
     SendClientMessage(playerid, COLOR_GREEN, "-Server- You have entered to DM.");
	 SetPlayerInterior(playerid,0);
	 SetPlayerPos(playerid,1059.895996,2081.685791,10.820312);
         ResetPlayerWeapons(playerid);
	 GivePlayerWeapon(playerid, 27, 100);
	 GivePlayerWeapon(playerid, 24, 100);
	 GivePlayerWeapon(playerid, 31, 250);
	 SetPlayerArmour(playerid,49);
     return 1;
}
How to set timer ? That player will be teleported to DM room when he typed this command after 10 sec ?
Reply


Messages In This Thread
Start command after some time - by aqu - 28.02.2011, 14:19
Re: Start command after some time - by iJumbo - 28.02.2011, 14:28
Re: Start command after some time - by Unknown123 - 28.02.2011, 14:29
Re: Start command after some time - by iJumbo - 28.02.2011, 14:33
Re: Start command after some time - by aqu - 28.02.2011, 14:56
Re: Start command after some time - by Unknown123 - 28.02.2011, 16:00

Forum Jump:


Users browsing this thread: 1 Guest(s)