Код:
if(strcmp(cmd, "/help", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new x_nr[256];
x_nr = strtok(cmdtext, idx);
if(!strlen(x_nr))
{
SendClientMessage(playerid, -1, ""#COL_PINK"Welcome to the help menu! "#COL_WHITE"Type '/help subject' for more info!");
SendClientMessage(playerid, -1, ""#COL_PINK"Newbie - "#COL_WHITE"What to do when your first get on Next Evolution Roleplay.");
SendClientMessage(playerid, -1, ""#COL_PINK"Rules - "#COL_WHITE"Tells you a few basic server rules.");
SendClientMessage(playerid, -1, ""#COL_PINK"Chat - "#COL_WHITE"Talking in person, or on the phone.");
SendClientMessage(playerid, -1, ""#COL_PINK"Jobs - "#COL_WHITE"Things you can do around Los Santos.");
return 1;
}
if(strcmp(x_nr,"Newbie",true) == 0)
{
SendClientMessage(playerid, -1, ""#COL_PINK"Are you new on NE-RP ? "#COL_WHITE"Here are some useful topics:");
SendClientMessage(playerid, COLOR_WHITE, "Type '/help topic' (death, phone, jobs, money, rules)");
SendClientMessage(playerid, COLOR_WHITE, "Type '/help topic' (about, getstarted, roleplay, chat)");
SendClientMessage(playerid, COLOR_PINK,"____________________________________________________________________");
return 1;
}
else if(strcmp(x_nr,"Rules",true) == 0)
{
SendClientMessage(playerid, -1, ""#COL_PINK"Rules on Next Evolution RolePlay: "#COL_WHITE"What to, and not to do, if you want to stick around.");
SendClientMessage(playerid, COLOR_WHITE, "Type ''/rules'' for more info!");
SendClientMessage(playerid, COLOR_PINK,"____________________________________________________________________");
return 1;
}
else if(strcmp(x_nr,"Chat",true) == 0)
{
SendClientMessage(playerid, -1, ""#COL_PINK"Chat: "#COL_WHITE"Talking with other players in person, on the phone, and otherwise");
SendClientMessage(playerid, COLOR_WHITE, "Type '/help topic' (Local, Phone, FactionChat, NewbChat, Ads, Report)");
SendClientMessage(playerid, COLOR_PINK,"____________________________________________________________________");
return 1;
}
else if(strcmp(x_nr,"Jobs",true) == 0)
{
SendClientMessage(playerid, -1, ""#COL_PINK"Jobs: "#COL_WHITE"Things you can do around Los Santos. Use '/skill' to check these.");
SendClientMessage(playerid, COLOR_WHITE, "Type '/help topic' (armsdeal, drugdeal, wheelman, merc, lawyer, fishing, dropcar)");
SendClientMessage(playerid, COLOR_PINK,"____________________________________________________________________");
return 1;