Help/exit command needed
#1

Can I have the command for help and exit please. The current game mode I have doesn't have cmd /help or exit installed I need it for my server thanks.
Reply
#2

Код:
CMD:help(playerid, params[])
{
    SendClientMessage(playerid, red, "to quit the game, /q");


	return 1;
}
Reply
#3

Quote:
Originally Posted by Superhot
Посмотреть сообщение
Код:
CMD:help(playerid, params[])
{
    SendClientMessage(playerid, red, "to quit the game, /q");


	return 1;
}
Err I meant when in a game mode where a player would ask for help by typing help to get info of the game play and where when a player is in a dm and wants to exit not quit the game to get back to where they were before they joined a warzone (spawn back to player spawn) same thing with derby. The players know what quit is they need to know what the game play is by typing /help to get the info of how to play well and if they want to exit a warzone dm by typing /exit to spawn back to where they were. Come on
Reply
#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
#5

Quote:
Originally Posted by Twizted
Посмотреть сообщение
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;
Thanks for the help there is one more thing I do need is a help command. Like for exsample : To want to know how to play in turf war type /help for more info. [Info about game play of how to take over turfs and rules so players know who to obey the rules].
Reply
#6

Nvm. Thanks your very helpful now I can add a help command.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)