CMD:admins(playerid, params[]) {
new
IsAdmin,
IsVip,
LOOL[2000],
AString[2000],
ClaseAdmin[20]
;
for(new i = 0, j = GetMaxPlayers(); i < j; i++) {
if(IsPlayerConnected(i)) {
if(PlayerDados[ i ] [ Vip ]) {
format( gString, sizeof( gString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, String );
IsVip++;
}
if(PlayerDados[ i ][ Admin ] > 0 ) {
if(PlayerDados[ i ][ Escondido ] == false ) {
if(PlayerDados[ i ][ Admin ] == 1) AdminNivel = "1", ClaseAdmin = "Admin Iniciante";
else if(PlayerDados[ i ][ Admin ] == 2 ) AdminNivel = "2", ClaseAdmin = "Sub Moderador";
else if(PlayerDados[ i ][ Admin ] == 3 ) AdminNivel = "3", ClaseAdmin = "Moderador";
else if(PlayerDados[ i ][ Admin ] == 4 ) AdminNivel = "4", ClaseAdmin = "Administrador";
else if(PlayerDados[ i ][ Admin ] == 5 ) AdminNivel = "5", ClaseAdmin = "Chefe Administracao";
else if(PlayerDados[ i ][ Admin ] == 6 ) AdminNivel = "6", ClaseAdmin = "Chefao";
else if(PlayerDados[ i ][ Admin ] == 7 ) AdminNivel = "7", ClaseAdmin = "Poderoso Chefao";
else if(PlayerDados[ i ][ Trabalhando ] == true) AdminTrabalhando = "Trabalhando";
else if(PlayerDados[ i ][ Trabalhando ] == false) AdminTrabalhando = "Jogando";
format( gStringReserva, sizeof( gStringReserva ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | %s | {BEBEBE}Status: %s\n", Nome( i ), AdminNivel, ClaseAdmin);
strcat( LOOL, gStringReserva );
IsAdmin ++;
}
}
}
}
format( AString, sizeof( AString ), "\n\n\t\t{0000FF}Admins: {00FF00}%d {FFFFFF}| {0000FF}Vips: {00FF00}%d", IsAdmin, IsVip);
strcat( LOOL, AString );
if( IsAdmin == 0 && IsVip == 0 ) {
//strcat(LOOL, "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
format( LOOL, sizeof( LOOL ), "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
}
IsVip = 0;
ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
return 1;
}
CMD:admins(playerid, params[]) {
new
IsAdmin,
IsVip,
LOOL[2000],
AString[2000],
ClaseAdmin[20]
;
for(new i = 0, j = GetMaxPlayers(); i < j; i++) {
if(IsPlayerConnected(i)) {
if(PlayerDados[ i ] [ Vip ]) {
format( gString, sizeof( gString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, String );
IsVip++;
if(PlayerDados[ i ][ Admin ] > 0 ) {
if(PlayerDados[ i ][ Escondido ] == false ) {
if(PlayerDados[ i ][ Admin ] == 1) AdminNivel = "1", ClaseAdmin = "Admin Iniciante";
else if(PlayerDados[ i ][ Admin ] == 2 ) AdminNivel = "2", ClaseAdmin = "Sub Moderador";
else if(PlayerDados[ i ][ Admin ] == 3 ) AdminNivel = "3", ClaseAdmin = "Moderador";
else if(PlayerDados[ i ][ Admin ] == 4 ) AdminNivel = "4", ClaseAdmin = "Administrador";
else if(PlayerDados[ i ][ Admin ] == 5 ) AdminNivel = "5", ClaseAdmin = "Chefe Administracao";
else if(PlayerDados[ i ][ Admin ] == 6 ) AdminNivel = "6", ClaseAdmin = "Chefao";
else if(PlayerDados[ i ][ Admin ] == 7 ) AdminNivel = "7", ClaseAdmin = "Poderoso Chefao";
else if(PlayerDados[ i ][ Trabalhando ] == true) AdminTrabalhando = "Trabalhando";
else if(PlayerDados[ i ][ Trabalhando ] == false) AdminTrabalhando = "Jogando";
format( gStringReserva, sizeof( gStringReserva ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | %s | {BEBEBE}Status: %s\n", Nome( i ), AdminNivel, ClaseAdmin);
strcat( LOOL, gStringReserva );
IsAdmin ++;
}
}
}
PHP Code:
|
OnPlayerCommandPerformed(playerid, cmdtext[], success){
if(!sucess) return SendClientMessage(playerid, -1, "Esse cmd n existe.");
return 1;
}
PHP Code:
|
tem que retornar a 1(true), no fato o cmd dele ta certo.
pawn Code:
|
if(PlayerDados[ i ] [ Vip ]) {
format( gString, sizeof( gString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, String );
IsVip++;
if(PlayerDados[ i ][ Admin ] > 0 ) {
if(PlayerDados[ i ][ Escondido ] == false ) {
if(PlayerDados[ i ][ Admin ] == 1) AdminNivel = "1", ClaseAdmin = "Admin Iniciante";
else if(PlayerDados[ i ][ Admin ] == 2 ) AdminNivel = "2", ClaseAdmin = "Sub Moderador";
else if(PlayerDados[ i ][ Admin ] == 3 ) AdminNivel = "3", ClaseAdmin = "Moderador";
else if(PlayerDados[ i ][ Admin ] == 4 ) AdminNivel = "4", ClaseAdmin = "Administrador";
else if(PlayerDados[ i ][ Admin ] == 5 ) AdminNivel = "5", ClaseAdmin = "Chefe Administracao";
else if(PlayerDados[ i ][ Admin ] == 6 ) AdminNivel = "6", ClaseAdmin = "Chefao";
else if(PlayerDados[ i ][ Admin ] == 7 ) AdminNivel = "7", ClaseAdmin = "Poderoso Chefao";
else if(PlayerDados[ i ][ Trabalhando ] == true) AdminTrabalhando = "Trabalhando";
else if(PlayerDados[ i ][ Trabalhando ] == false) AdminTrabalhando = "Jogando";
format( gStringReserva, sizeof( gStringReserva ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | %s | {BEBEBE}Status: %s\n", Nome( i ), AdminNivel, ClaseAdmin);
strcat( LOOL, gStringReserva );
IsAdmin ++;
}
}
}
if(PlayerDados[ i ] [ Vip ]) {
format( gString, sizeof( gString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, String );
IsVip++;
}
if(PlayerDados[ i ][ Admin ] > 0 ) {
if(PlayerDados[ i ][ Escondido ] == false ) {
if(PlayerDados[ i ][ Admin ] == 1) AdminNivel = "1", ClaseAdmin = "Admin Iniciante";
else if(PlayerDados[ i ][ Admin ] == 2 ) AdminNivel = "2", ClaseAdmin = "Sub Moderador";
else if(PlayerDados[ i ][ Admin ] == 3 ) AdminNivel = "3", ClaseAdmin = "Moderador";
else if(PlayerDados[ i ][ Admin ] == 4 ) AdminNivel = "4", ClaseAdmin = "Administrador";
else if(PlayerDados[ i ][ Admin ] == 5 ) AdminNivel = "5", ClaseAdmin = "Chefe Administracao";
else if(PlayerDados[ i ][ Admin ] == 6 ) AdminNivel = "6", ClaseAdmin = "Chefao";
else if(PlayerDados[ i ][ Admin ] == 7 ) AdminNivel = "7", ClaseAdmin = "Poderoso Chefao";
else if(PlayerDados[ i ][ Trabalhando ] == true) AdminTrabalhando = "Trabalhando";
else if(PlayerDados[ i ][ Trabalhando ] == false) AdminTrabalhando = "Jogando";
format( gStringReserva, sizeof( gStringReserva ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | %s | {BEBEBE}Status: %s\n", Nome( i ), AdminNivel, ClaseAdmin);
strcat( LOOL, gStringReserva );
IsAdmin ++;
}
}
}
}
CMD:admins(playerid, params[])
{
new IsAdmin, IsVip, LOOL[800], AString[800], ClaseAdmin[30];
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(PlayerDados[ i ] [ Vip ])
{
format( gString, sizeof( gString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, String );
IsVip++;
}
if(PlayerDados[ i ][ Escondido ] != false )
{
switch(PlayerDados[ i ][ Admin ])
{
case 1: ClaseAdmin = "1 | Admin Iniciante";
case 2: ClaseAdmin = "2 | Sub Moderador";
case 3: ClaseAdmin = "3 | Moderador";
case 4: ClaseAdmin = "4 | Administrador";
case 5: ClaseAdmin = "5 | Chefe Administracao";
case 6: ClaseAdmin = "6 | Chefao";
case 7: ClaseAdmin = "7 |Poderoso Chefao";
}
format( gStringReserva, sizeof( gStringReserva ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | {BEBEBE}Status: %s\n", Nome( i ), ClaseAdmin, PlayerDados[ i ][ Trabalhando ] == true ? ("Trabalhando") : ("Jogando"));
strcat( LOOL, gStringReserva );
IsAdmin ++;
}
}
}
format( AString, sizeof( AString ), "\n\n\t\t{0000FF}Admins: {00FF00}%d {FFFFFF}| {0000FF}Vips: {00FF00}%d", IsAdmin, IsVip);
strcat( LOOL, AString );
if( IsAdmin == 0 && IsVip == 0 )
{
format( LOOL, sizeof( LOOL ), "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
}
else ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
return 1;
}
pawn Code:
|
CMD:admins(playerid, params[])
{
new IsAdmin, IsVip, LOOL[800], AString[800], ClaseAdmin[30];
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(PlayerDados[ i ] [ Vip ])
{
format( AString, sizeof( AString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, AString );
IsVip++;
}
if(PlayerDados[ i ][ Escondido ] != false )
{
switch(PlayerDados[ i ][ Admin ])
{
case 1: ClaseAdmin = "1 | Admin Iniciante";
case 2: ClaseAdmin = "2 | Sub Moderador";
case 3: ClaseAdmin = "3 | Moderador";
case 4: ClaseAdmin = "4 | Administrador";
case 5: ClaseAdmin = "5 | Chefe Administracao";
case 6: ClaseAdmin = "6 | Chefao";
case 7: ClaseAdmin = "7 | Poderoso Chefao";
}
format( AString, sizeof( AString ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | {BEBEBE}Status: %s\n", Nome( i ), ClaseAdmin, PlayerDados[ i ][ Trabalhando ] == true ? ("Trabalhando") : ("Jogando"));
strcat( LOOL, AString );
IsAdmin ++;
}
}
}
format( AString, sizeof( AString ), "\n\n\t\t{0000FF}Admins: {00FF00}%d {FFFFFF}| {0000FF}Vips: {00FF00}%d", IsAdmin, IsVip);
strcat( LOOL, AString );
if( IsAdmin == 0 && IsVip == 0 )
{
format( LOOL, sizeof( LOOL ), "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
}
else ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
return 1;
}
CMD:admins(playerid, params[])
{
new IsAdmin, IsVip, LOOL[800], AString[800], ClaseAdmin[30];
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(PlayerDados[ i ] [ Vip ])
{
format( AString, sizeof( AString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, AString );
IsVip++;
}
if(PlayerDados[ i ][ Admin ] > 0)
{
switch(PlayerDados[ i ][ Admin ])
{
case 1: ClaseAdmin = "1 [ Admin Iniciante ]";
case 2: ClaseAdmin = "2 [ Sub Moderador ]";
case 3: ClaseAdmin = "3 [ Moderador ]";
case 4: ClaseAdmin = "4 [ Administrador ]";
case 5: ClaseAdmin = "5 [ Chefe Administracao ]";
case 6: ClaseAdmin = "6 [ Chefao ]";
case 7: ClaseAdmin = "7 [ Poderoso Chefao ]";
}
format( AString, sizeof( AString ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s\n", Nome( i ), ClaseAdmin);
strcat( LOOL, AString );
IsAdmin ++;
}
}
}
format( AString, sizeof( AString ), "\n\n\t\t{0000FF}Admins: {00FF00}%d {FFFFFF}| {0000FF}Vips: {00FF00}%d", IsAdmin, IsVip);
strcat( LOOL, AString );
if( IsAdmin == 0 && IsVip == 0 )
{
format( LOOL, sizeof( LOOL ), "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
}
else ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
return 1;
}
CMD:admins(playerid, params[])
{
new IsAdmin, IsVip, LOOL[800], AString[800], ClaseAdmin[35];
for(new i = 0; i < GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(PlayerDados[ i ] [ Vip ])
{
format( AString, sizeof( AString ), "{FFFFFF}%s {00FF00}(VIP)\n", Nome( i ));
strcat( LOOL, AString );
IsVip++;
}
if(PlayerDados[ i ][ Escondido ] == false )
{
switch(PlayerDados[ i ][ Admin ])
{
case 1: ClaseAdmin = "1 | Admin Iniciante";
case 2: ClaseAdmin = "2 | Sub Moderador";
case 3: ClaseAdmin = "3 | Moderador";
case 4: ClaseAdmin = "4 | Administrador";
case 5: ClaseAdmin = "5 | Chefe Administracao";
case 6: ClaseAdmin = "6 | Chefao";
case 7: ClaseAdmin = "7 | Poderoso Chefao";
}
format( AString, sizeof( AString ), "{FFFFFF}%s | {BEBEBE}Nнvel: {FFFFFF}%s | {BEBEBE}Status: %s\n", Nome( i ), ClaseAdmin, PlayerDados[ i ][ Trabalhando ] == true ? ("Trabalhando") : ("Jogando"));
strcat( LOOL, AString );
IsAdmin ++;
}
}
}
format( AString, sizeof( AString ), "\n\n\t\t{0000FF}Admins: {00FF00}%d {FFFFFF}| {0000FF}Vips: {00FF00}%d", IsAdmin, IsVip);
strcat( LOOL, AString );
if( IsAdmin == 0 && IsVip == 0 )
{
format( LOOL, sizeof( LOOL ), "\n\n\t{FFFFFF}Nenhum {00FF00}Administrador {FFFFFF}estб Online no momento.\n\n{FFFFFF}Caso vocк ver alguйm usando cheater\ntire um print/foto e poste em nosso fуrum.\n");
ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
}
else ShowPlayerDialog( playerid, DIALOG_ADMSON, DIALOG_STYLE_MSGBOX, "Admins Online", LOOL, "Fechar", "" );
return 1;
}