{Fixed}Help With /call 411
#1

im trynna make a /call 411 so players can look up other player numbers how can i make it so it can do it here is my command

well that part
Код:
			GetPlayerName(playerid, sendername, sizeof(sendername));
			format(string, sizeof(string), "* %s takes out a cellphone.", sendername);
			ProxDetector(30.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
			new phonenumb = strval(tmp);
			if(phonenumb == 411)
			{
				SendClientMessage(playerid, COLOR_WHITE, "HINT: You now use T to talk on your cellphone, type /hangup to hang up");
				SendClientMessage(playerid, COLOR_ALLDEPT, "Who number does you require to look up?");
				Mobile[playerid] = 411;
				return 1;
			}
			if(phonenumb == PlayerInfo[playerid][pPnumber])
			{
				SendClientMessage(playerid, COLOR_GRAD2, " You just get a busy tone...");
				return 1;
			}
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, COLOR_GRAD2, " You are already on a call...");
				return 1;
			}
what can i add to make it...so player can....plz help urgent...
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerText
Reply
#3

okay i already got it but wat do i put here
Код:
else if ((strcmp("%s", tmp, true, strlen(tmp)) == 0) && (strlen(tmp) == strlen("%s")))
Reply
#4

okay nvm i fixed it...........
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)