SA-MP Forums Archive
{Fixed}Help With /call 411 - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: {Fixed}Help With /call 411 (/showthread.php?tid=135361)



{Fixed}Help With /call 411 - YoungMoolaBaby.2010 - 20.03.2010

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...


Re: Help With /call - MadeMan - 20.03.2010

https://sampwiki.blast.hk/wiki/OnPlayerText


Re: Help With /call - YoungMoolaBaby.2010 - 20.03.2010

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



Re: {Fixed}Help With /call 411 - YoungMoolaBaby.2010 - 20.03.2010

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