19.10.2013, 22:54
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;
}
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;