24.11.2012, 15:44
I want to make that when player write /exit, cmd works in ~5 secs, this is possible? Because someone doing /dm, when he get low hp, he /exit and already /dm and he get full HP.
COMMAND:exit( playerid, params[ ] )
{
if(DM[playerid] == true)
{
SetPlayerPos(playerid, 397.5430, -1804.3560, 8.9000);
SendClientMessage(playerid, 0xFF000090, "You exit from DM zone.");
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
DM[playerid] = false;
}
COMMAND:exit( playerid, params[ ] )
{
if(DM[playerid] == true)
{
SetPlayerPos(playerid, 397.5430, -1804.3560, 8.9000);
SendClientMessage(playerid, 0xFF000090, "You exit from DM zone.");
ResetPlayerWeapons(playerid);
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(playerid, 0);
DM[playerid] = false;
}