22.02.2010, 12:01
pawn Код:
if(strcmp(cmd, "/commands", true) == 0 || strcmp(cmd, "/cmds", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_YELLOW2,"______________________________________________________________________________________________");
SendClientMessage(playerid, COLOR_YELLOW2,"~ ACCOUNT ~ /rules /stats /removereminder /setreminder /reminder");
SendClientMessage(playerid, COLOR_YELLOW2,"~ GENERAL ~ /dropdrugs /dropgun /tellmylocation /call /tie /blindfold /searchwallet /healme /attempt /(no)resist");
if(PlayerInfo[playerid][pJob] == 1) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /find"); }
else if(PlayerInfo[playerid][pJob] == 2) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /free"); }
else if(PlayerInfo[playerid][pJob] == 3) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sex"); }
else if(PlayerInfo[playerid][pJob] == 4) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /buypot /buycrack /findpot /findcrack /givepot /givecrack"); }
else if(PlayerInfo[playerid][pMember] == 9) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /live /news"); }
else if(PlayerInfo[playerid][pJob] == 6) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /cookuniform /waiteruniform /showmenu"); }
else if(PlayerInfo[playerid][pJob] == 7) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /paintcar /colorcar /repair /duty /tow /untow"); }
else if(PlayerInfo[playerid][pJob] == 8) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /guard"); }
else if(PlayerInfo[playerid][pJob] == 9) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /findguns /sellgun /sellmats"); }
else if(PlayerInfo[playerid][pJob] == 10) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sellcar"); }
else if(PlayerInfo[playerid][pJob] == 12) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /fight /boxstats"); }
else if(PlayerInfo[playerid][pJob] == 14) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /startroute"); }
else if(PlayerInfo[playerid][pJob] == 17) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /sellicecream"); }
else if(PlayerInfo[playerid][pJob] == 18) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /duty /heal"); }
else if(PlayerInfo[playerid][pJob] == 19) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /fare"); }
else if(PlayerInfo[playerid][pJob] == 20) {
SendClientMessage(playerid,COLOR_LIGHTBLUE,"~ JOB ~ /startpizza /getpizza /givepizza"); }
if (PlayerInfo[playerid][pMember] == 1 || PlayerInfo[playerid][pLeader] == 1)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "~ LSPD ~ /lspd(help)");
}
if (PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2)
{
SendClientMessage(playerid, COLOR_LIGHTBLUE, "~ FBI ~ /fbi(help)");
}
if (PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10)
{
SendClientMessage(playerid, COLOR_YELLOW, "~ GL ~ /r(adio) /f(amily) /opengate /members /gate /lab /lift /lift2 /getarmed");
}
SendClientMessage(playerid, COLOR_YELLOW2,"~ OTHER ~ /jobhelp /bank(help) /cellphonehelp /househelp /renthelp /businesshelp /leaderhelp /language(help)");
}
return 1;
}