[PEDIDO] SMS Pelo TAB LEIA ANTES DE COMENTAR
#1

Ai galera eu queria os coode da que voce aperta TAB CLIKA no player e manda sms ou liga
Obs: Nao Quero Fs Ja usei search
agradesco desde ja
Reply
#2

ja usou search, ta bom, me engana, ja vi um topico pedindo a mesma coisa, aqui no PT/BR

usa a public OnPlayerClick Player, e se vc ja tem o cmd /sms fica mais facil
Reply
#3

PROCURA ENTAO ( SMS TAB ) TAB OU ALGO PARECIDO .. SE ACHAR PODE MANDA ME BANIR
Reply
#4

vc tem o cmd /sms ?
Reply
#5

Код:
if(strcmp(cmd, "/sms", true) == 0 || strcmp(cmd, "/t", true) == 0 || strcmp(cmd, "/sms", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
		    if(gPlayerLogged[playerid] == 0)
	        {
	            SendClientMessage(playerid, COLOR_GREY, "Voce nгo estб logado!");
	            return 1;
	        }
	        if(PlayerInfo[playerid][pLevel] < 4)

			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_GRAD2, "USE: (/t)ext [telefone] [texto]");
				return 1;
			}
			if(PlayerInfo[playerid][pPnumber] == 0)
			{
				SendClientMessage(playerid, COLOR_GRAD2, "Voce nгo tem um celular...");
				return 1;
			}
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "* %s pegou o celular.", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			new phonenumb = strval(tmp);
			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: (/t)ext [NUMERO TELEFONE] [TEXTO]");
				return 1;
			}
			if(phonenumb == 555)
			{
				if ((strcmp("sim", result, true, strlen(result)) == 0) && (strlen(result) == strlen("sim")))
				{
					SendClientMessage(playerid, COLOR_WHITE, "Mensagem enviada.");
					if (gTeam[playerid] == 2 || gTeam[playerid] == 1)
					{
						SendClientMessage(playerid, COLOR_YELLOW, "SMS: Eu nгo tenho nenhuma idйia o sobre o que vocк estб falando, Remetente,: Ronaldo (555)");
						RingTone[playerid] = 20;
						return 1;
					}
					return 1;
				}
				else
				{
					SendClientMessage(playerid, COLOR_YELLOW, "SMS: Um simples Sim farб, Remetente: Ronaldo (555)");
					RingTone[playerid] = 20;
					return 1;
				}
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					if(PlayerInfo[i][pPnumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid; //caller connecting
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid] > 0)
						        {
						            SendClientMessage(playerid, COLOR_GREY, "   O celular chamado esta fora da area de cobertura ou desligado !");
						            return 1;
						        }
								format(string, sizeof(string), "SMS: %s, enviou: %s (%d)", result,sendername,PlayerInfo[playerid][pPnumber]);
								GetPlayerName(giveplayerid, sendername, sizeof(sendername));
								//format(string, sizeof(string), "* %s's phone beeps.", sendername);
								RingTone[giveplayerid] =20;
								SendClientMessage(playerid, COLOR_WHITE, "SMS Enviado");
								SendClientMessage(giveplayerid, COLOR_YELLOW, string);
								SendClientMessage(playerid,  COLOR_YELLOW, string);
								format(string, sizeof(string), "~r~R$-%d", SBizzInfo[2][sbEntranceCost]);
								GameTextForPlayer(playerid, string, 5000, 1);
								GivePlayerMoneyEx(playerid,-SBizzInfo[2][sbEntranceCost]);
								SBizzInfo[2][sbTill] += SBizzInfo[2][sbEntranceCost];
								ExtortionSBiz(2, SBizzInfo[2][sbEntranceCost]);
					           	PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);
					           	Mobile[playerid] = 255;
								return 1;
							}
						}
					}
				}
			}
			SendClientMessage(playerid, COLOR_GRAD2, "  Mensagem falhou!");
		}
		return 1;
	}
Reply
#6

bota em OnPlayerClickPlayer:

pawn Код:
new texto[68];
format(texto, sizeof(texto), "/t %d", clickedid)
OnPlayerCommandText(playerid, texto);
ai so adapta pra o texto do sms ser em dialog
Reply
#7

https://sampwiki.blast.hk/wiki/OnPlayerClickPlayer
Reply
#8

@[Full]Garfield[XDB]

Aparece isso On Player Clicked 0
Reply
#9

Quote:
Originally Posted by Renato_Pollo
Посмотреть сообщение
PROCURA ENTAO ( SMS TAB ) TAB OU ALGO PARECIDO .. SE ACHAR PODE MANDA ME BANIR
https://sampforum.blast.hk/showthread.php?tid=142056

Podemos Banir?
Reply
#10

Quote:
Originally Posted by DraKiNs
Посмотреть сообщение
pawn Код:
if(strcmp(cmdtext,"/ban", true, 3))
    {
    new Player[40]
    GetPlayerName(playerid, Player, 40);
    if(strlen(tmp) == 0 || !cmdtext[3]) return SendClientMessage(playerid, Vermelho, "Uso do Comando: /Banir ID Motivo");
    new str[128];
    format(str, sizeof(str), "%sFoi Banido Pelo admin:|-%s-|Pelo Motivo:'%s'", strval(tmp), Player, cmdtext[4]);
    SendClientMessageToAll(Vermelho, str);
    Ban(strval(tmp));
    return 1;
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)