[PEDIDO]Comando /alq
#1

Eu qeria um comando /alq eu ja procurei e nгo conseguir achar ¬¬ so pra al qaeda se alguem tiver ou poder me ajudar ae :]
Reply
#2

Vocк quer que este comando execute o que ?

Qual a variavel de Al-Qaeda do seu GM ?
Reply
#3

Eu quero tipo um anuncio terrorista ex:"/alq Ataque Terrorista em LS " ai aparece para todos.
se variavel for o numero da Org й 22 . (so novato em pawn)
Reply
#4

ta aн
Код:
//----------------------------------[Al'qaeda]-----------------------------------------------
	if(strcmp(cmd, "/alqaeda", true) == 0 || strcmp(cmd, "/alq", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
	    {
            if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)//aki vc modifica o numero da org conforme estiver em seu gm
			{
			if(PlayerInfo[playerid][pCargo] < 5)//aki a pessoa tem q ter este cargo para poder anunciar
			{
			    SendClientMessage(playerid, COLOR_GREY, "Voce precisa ter pelomenos cargo 4 para usar este comando!!");
			    return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			new length = strlen(cmdtext);
			while ((idx < length) && (cmdtext[idx] <= ' '))
			{
				idx++;
			}
			new offset = idx;
			new result[64];
			while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
			{
				result[idx - offset] = cmdtext[idx];
				idx++;
			}
			result[idx - offset] = EOS;
			if(!strlen(result))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: (/alq)aeda [texto]");
				return 1;
			}
			SendClientMessageToAll(COLOR_WHITE, "|!-.-!|Anuncio Da Al'qaeda|!-.-!|");//o anuncio :)
			format(string, sizeof(string), "Terrorista %s: %s", sendername, result);
			SendClientMessageToAll(VERMELHO, string);
		}
		}
		return 1;
	}
Espero ter ajudado ^^
Reply
#5

PHP код:
public OnPlayerCommandText(playeridcmdtext[])
{
    if(
strcmp(cmd"/alq"true) == 0)
    {
        if(
PlayerInfo[playerid][pMember] != 22) return SendClientMessage(playerid0xFF0000FF"Vocк nгo й da Al-Qaeda.");
        new 
length strlen(cmdtext);
        while ((
idx length) && (cmdtext[idx] <= ' '))
        {
            
idx++;
        }
        new 
offset idx;
        new 
result[64];
        while ((
idx length) && ((idx offset) < (sizeof(result) - 1)))
        {
            
result[idx offset] = cmdtext[idx];
            
idx++;
        }
        
result[idx offset] = EOS;
        if(!
strlen(result)) return SendClientMessage(playerid0x999999FF"USO: /alq [TEXTO]");
        new 
str[128], n[24];
        
GetPlayerName(playeridnsizeof(n));
        
format(strsizeof(str), "[AL-QAEDA] %s: %s"nresult);
        
SendClientMessageToAll(0x08DB80FFstr);
        return 
1;
    }
    return 
0;

Reply
#6

Valeu deu certo ^^
Reply
#7

Ola, peguei a do Shadoww5 e dei uma edita nela mais coisa pouca so pra ficar mais ligal

Quote:

if(strcmp(cmd, "/alq", true) == 0)
{
if(PlayerInfo[playerid][pMember] != 22) return SendClientMessage(playerid, 0xFF0000FF, "Vocк nгo й da Al-Qaeda.");
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' '))
{
idx++;
}
new offset = idx;
new result[64];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1)))
{
result[idx - offset] = cmdtext[idx];
idx++;
}
result[idx - offset] = EOS;
if(!strlen(result)) return SendClientMessage(playerid, 0x999999FF, "USO: /alq [TEXTO]");
new str[128], n[24];
GetPlayerName(playerid, n, sizeof(n));
SendClientMessageToAll(COLOR_WHITE, "|_____Notнcias Terrorista_____|");
format(str, sizeof(str), "[AL-QAEDA] %s: %s", n, result);
SendClientMessageToAll(0xFF8282AA, str);
return 1;
}
return 0;
}

Reply
#8

Quote:
Originally Posted by year_Stracci
Посмотреть сообщение
Ola, peguei a do Shadoww5 e dei uma edita nela mais coisa pouca so pra ficar mais ligal
apenas botou SendClientMessageToAll(COLOR_WHITE, "|_____Notнcias Terrorista_____|");
Reply
#9

Quote:
Originally Posted by Lipe_Stronda
Посмотреть сообщение
apenas botou SendClientMessageToAll(COLOR_WHITE, "|_____Notнcias Terrorista_____|");
ele nao sу colocou como falou q colocou sу pra falar q fez algo? ¬¬

avaaa se liga mlk ¬¬

sу pra ganhar posts e upar sua acc? ¬¬

й assim q o brasil vai pra frente....


kkkkkkkkkkkkk
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)