Help/exit command needed
#4

pawn Код:
CMD:help(playerid, params[])
{
    SendClientMessage(playerid, -1, "whatever you want here");
    SendClientMessage(playerid, -1, "whatever you want here");
    SendClientMessage(playerid, -1, "whatever you want here");

    return 1;
}
EDIT: You posted before I did, so this is what you need:

pawn Код:
new InDM[MAX_PLAYERS] //ontop of the script, create this variable

//Make a /kill command (SetPlayerHealth to 0) and add this after that:
InDM[playerid] = 0;

//Add this in the command you use to teleport to a DM.
InDM[playerid] = 1;

//Put this after the commands you want to disable while a player is in a DM.
if(InDM[playerid] == 1)
{
     return SendClientMessage(playerid,color,"You must exit this DM before you go to a new one. Type /kill first");
}

//Put this inside OnPlayerDeath
InDM[playerid] = 0;
Reply


Messages In This Thread
Help/exit command needed - by Cirno9 - 19.10.2013, 22:08
Re: Help/exit command needed - by Superhot - 19.10.2013, 22:11
Re: Help/exit command needed - by Cirno9 - 19.10.2013, 22:50
Re: Help/exit command needed - by Twizted - 19.10.2013, 22:54
Re: Help/exit command needed - by Cirno9 - 19.10.2013, 23:21
Re: Help/exit command needed - by Cirno9 - 19.10.2013, 23:27

Forum Jump:


Users browsing this thread: 2 Guest(s)