//----------------------------------[HELP]----------------------------------------------- if(strcmp(cmd, "/ayuda", true) == 0) { if(IsPlayerConnected(playerid)) { SendClientMessage(playerid, COLOR_GRAD1,":: ACCOUNT :: /reglas /conectar /cuenta /changepass /subirnivel /upgrade"); SendClientMessage(playerid, COLOR_GRAD1,":: GENERAL :: /pagar /charity /hora /comprar /desrentarauto /desrentarmoto /switchkey /id /beber /ropa /opendoor(/od)"); SendClientMessage(playerid, COLOR_GRAD2,":: GENERAL :: /resetupgrades(50k) /buygun /lock /skill /licensias /mostrarlicensias(/sl) /reportar /askq /animlist /stopanim /fuel"); SendClientMessage(playerid, COLOR_GRAD2,":: GENERAL :: (/re)port /cancel /aceptar /eject /usedrugs /contrato /llenar /admins /licensers (/f)actionlist"); SendClientMessage(playerid, COLOR_GRAD3,":: GENERAL :: (/wi)ndows /coin /trunk (/inv)entory /knock /nokear /give /gateopen /sid /cfumar"); SendClientMessage(playerid, COLOR_GRAD3,":: CHAT :: (/p)me (/cw)hisper (/o)oc (/s)hout /low (/b) (/f)action /me /do /togooc /tognews /togfam /togpm /togphone"); SendClientMessage(playerid, COLOR_GRAD4,":: BANK :: /saldo /sacar /depositar /transferir"); if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1) { SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrestar /duty /wanted /esposar (/ta)zer /undercover /backup(/bk)"); SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /frisk /friskinv /quitar /multar (/gov)ernment /deliver /ram /swat /authorizeswat /deauthorizeswat /drag /copuntie"); SendClientMessage(playerid, COLOR_YELLOW2, ":: SAPD :: /backupclear(/bkc) /roadblock(/rb) /roadunblock(/rrb) /roadunblockall(/rrball) /mostrarcarnet /tracelastcall(/tlc) /weplicense"); } if(PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 2) { SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: (/r)adio (/ref)uerzos (/d)epartments (/m)egaphone (/su)spect /mdc /arrestar /duty /wanted (/cu)ff (/ta)zer /agente /showid /friskinv"); SendClientMessage(playerid, COLOR_YELLOW2, ":: FBI :: /frisk /quitar /multar (/gov)ernment /deliver /ram /drag /copuntie /authorizetactical /deauthorizetactical /tactical"); } if(PlayerInfo[playerid][pLeader] == 3 || PlayerInfo[playerid][pMember] == 3) { SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: (/r)adio (/d)epartments (/m)egaphone (/su)spect /mdc /arrestar /wanted (/cu)ff (/ta)zer"); SendClientMessage(playerid, COLOR_YELLOW2, ":: Military :: /frisk /friskinv /quitar /multar (/gov)ernment /deliver /ram /drag /copuntie"); } if(PlayerInfo[playerid][pJob] == 1) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /find"); } else if(PlayerInfo[playerid][pJob] == 2) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /liberar"); } else if(PlayerInfo[playerid][pJob] == 3) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sex"); } else if(PlayerInfo[playerid][pJob] == 4) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /selldrugs /importardrogas /vdrogas /cosecharDrogas /dcosecharDrogas"); } else if(PlayerInfo[playerid][pJob] == 5) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /robar [Auto/ Dinero/ Telefono/ 24-7]"); } else if(PlayerInfo[playerid][pMember] == 9 || PlayerInfo[playerid][pLeader] == 9) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /paper /papers /live /noticias [text]"); } else if(PlayerInfo[playerid][pJob] == 7) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /repair/refill /duty /modificarveh /remolcar /subirm /bajarm"); } else if(PlayerInfo[playerid][pJob] == 8) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /guard"); } else if(PlayerInfo[playerid][pJob] == 9) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellgun"); } else if(PlayerInfo[playerid][pJob] == 10) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /sellcar"); } else if(IsAMedic(playerid)){SendClientMessage(playerid,COLOR_OOCD,"[_TRABAJO_] /curar /informes"); } else if(PlayerInfo[playerid][pJob] == 12) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fight /boxstats"); } else if(PlayerInfo[playerid][pMember] == 10 || PlayerInfo[playerid][pLeader] == 10|| PlayerInfo[playerid][pJob] == 25) { SendClientMessage(playerid,COLOR_LIGHTBLUE," |.:: TRABAJO ::.| /fare"); } else if(PlayerInfo[playerid][pJob] == 15) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /papers /bring /deliver"); } else if(PlayerInfo[playerid][pJob] == 16) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /buyprods /sellprods /load"); } else if(PlayerInfo[playerid][pJob] == 17) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /duty /sellpizza"); } else if(PlayerInfo[playerid][pJob] == 18) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /cocechar /dejardecosechar"); } else if(PlayerInfo[playerid][pJob] == 19) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /cosecharDrogas /dcosecharDrogas"); } else if(PlayerInfo[playerid][pJob] == 20) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /importardrogas /vdrogas"); } else if(PlayerInfo[playerid][pJob] == 21) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /barrer /dbarrer"); } else if(PlayerInfo[playerid][pJob] == 22) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /smugglemats"); } else if(PlayerInfo[playerid][pJob] == 14) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /fare"); } else if(PlayerInfo[playerid][pJob] == 26) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /cocinar /pastel /pavo /cuniforme /Fideos"); } else if(PlayerInfo[playerid][pJob] == 23) { SendClientMessage(playerid,COLOR_YELLOW2,":: JOB :: /creategun /buymats"); } else if(PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8) { SendClientMessage(playerid,COLOR_YELLOW2,":: HITMAN :: /portable"); } if(PlayerInfo[playerid][pMember] == 11||PlayerInfo[playerid][pLeader] == 11||PlayerInfo[playerid][pMember] == 12||PlayerInfo[playerid][pLeader] == 12){ SendClientMessage(playerid,COLOR_YELLOW2,":: LESSON :: /startlesson /stoplesson /darlicensia"); } if (gTeam[playerid] == 1 || PlayerInfo[playerid][pMember] == 4 || PlayerInfo[playerid][pLeader] == 4) { SendClientMessage(playerid, COLOR_YELLOW2, ":: SAMD :: (/r)adio (/d)epartments /heal /duty /tracelastcall(/tlc)"); } if (PlayerInfo[playerid][pAdmin] >= 1) { SendClientMessage(playerid, COLOR_YELLOW, ":: ADMIN :: (/a)dmin (/ah)elp"); } SendClientMessage(playerid, COLOR_GRAD6,":: OTHER :: /celayuda /casaAyuda /AyudaNota /manual /rentaAyuda /negocioayuda /liderayuda /fishhelp /cookhelp /irchelp"); } return 1; }
new Ayuda[] = "Todo lo que haya";
if(!strcmp(cmdtext, "/ayuda", true))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX , "Menъ de ayuda", Ayuda,"Aceptar" ,"Cancelar"); //El Ayuda es lo que antes hicimos.
return 1;
}
Originally Posted by CristianTdj
Para eso que es un tocho, haz un
pawn Код:
pawn Код:
|
new Ayuda[] = "texto que quieres que aparesca cuando pongas la variable ayuda en un lugar"; // este es el texto que pusimos en ayuda...
SendClientMessageToAll(COLOR, Ayuda); // colocando ayuda alli mostrarб lo que pusiste en ayuda para todos los jugadores...
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX , "Menъ de ayuda", Ayuda,"Aceptar" ,"Cancelar");
// colocando ayuda alli saldra el texto que pusismos en ayuda como el info del dialogo.
new Ayuda[] = "Todo lo de ayuda";
new AyudaMafia[] = "Todo lo que sale para la Mafia"; //Es un ejemplo.
//Todos los demбs trabajos.
if(strcmp(cmd, "/ayuda", true) == 0)
{
if(IsPlayerConnected(playerid))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX, "Menъ de ayuda", Ayuda,"Aceptar","Cancelar"); //Esto se muestra a todos los jugadores
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX, "Menъ de ayuda", Policia,"Aceptar","Cancelar"); //Y esto se aсade si es policнa.
//Todo lo demбs, o sea, todas las facciones o trabajos.
//Arriba de tu GM. Formamos las variables.
new Ayuda[] = "Todo lo que vayas a poner en el menъ de ayuda en general\"; //Cuando vayas a acabar la lнnea usa esa raya "\" para acabarla, y usa "\n" para empezar otra lнnea.
new Ayudapolis[] = "Todo lo que vayas a poner en el menъ de ayuda para policнas";
//Esto se coloca en el 'callback' public OnPlayerCommandText
if(!strcmp(cmdtext, "/Ayuda", true))
{
ShowPlayerDialog(playerid, 0, DIALOG_STYLE_MSGBOX,"Menъ de ayuda", Ayuda, "Aceptar","Cancelar"); //Colocamos la variable aquн
return 1;
}
//Ahora el otro comando para polis.
if(!strcmp(cmdtext, "/Ayudapolis", true))
{
if(PlayerInfo[playerid][pLeader] == 1 || PlayerInfo[playerid][pMember] == 1)
{
ShowPlayerDialog(playerid, 1, DIALOG_STYLE_MSGBOX,"Menъ de ayuda para policнas", Ayudapolis, "Aceptar","Cancelar"); //Colocamos la otra variable aquн
} else {
SendClientMessage(playerid, 0xFF0000FF, "ЎTъ no eres policнa!"); //El 0xFF0000FF es el color (Rojo). Lo puedes cambiar si quieres.
}
return 1;
//Aquн ya haces todos los demбs, de la mafia, mйdicos, etc.
}
Originally Posted by CristianTdj
Mmmm ya se
Puedes hacer distintos menъs de ayuda. El /Ayuda bбsico y el /Ayudapolis (Para policнas) o el /Ayudamafia (Para la mafia), etc. Ej: pawn Код:
pawn Код:
|