SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 04/07/2014, 01:10 PM   #11
Frankin
Little Clucker
 
Frankin's Avatar
 
Join Date: Jul 2014
Location: in my house :P
Posts: 30
Reputation: 3
Default Re: Phone Textdraw (clickable, GTA IV design)

Great job
Frankin is offline   Reply With Quote
Old 04/07/2014, 01:13 PM   #12
SHE790
Big Clucker
 
SHE790's Avatar
 
Join Date: Jul 2014
Location: Iran
Posts: 196
Reputation: 16
Default Re: Phone Textdraw (clickable, GTA IV design)

Good Job +REP
__________________
SHE790 is offline   Reply With Quote
Old 04/07/2014, 03:00 PM   #13
Cookland
Gangsta
 
Cookland's Avatar
 
Join Date: Mar 2014
Posts: 882
Reputation: 84
Default Re: Phone Textdraw (clickable, GTA IV design)

This is amazing.
Nice work, Repped.
__________________
Cookland is offline   Reply With Quote
Old 04/07/2014, 04:36 PM   #14
Wasim
Big Clucker
 
Wasim's Avatar
 
Join Date: Apr 2014
Posts: 55
Reputation: 2
Default Re: Phone Textdraw (clickable, GTA IV design)

Very simple, yet effective, Good work
__________________
Wasim is offline   Reply With Quote
Old 20/08/2014, 06:22 PM   #15
SheikhC
Little Clucker
 
Join Date: Aug 2014
Posts: 8
Reputation: 0
Default Re: Phone Textdraw (clickable, GTA IV design)

How can i do this functionally? tell me where to add the line.... in gamemode or fs ?

Code:
if(strcmp(cmd, "/call", true) == 0)
	{
	    if(IsPlayerConnected(playerid))
		{
			tmp = strtok(cmdtext, idx);
			if(!strlen(tmp))
			{
				SendClientMessage(playerid, COLOR_WHITE, "[Usage:] /call [phonenumber]");
				return 1;
			}
			if(PlayerInfo[playerid][pPhoneNumber] == 0)
			{
				SendClientMessage(playerid, COLOR_GREY, "[Error:] You do not have a phone");
				return 1;
			}
			if(PlayerInfo[playerid][pSex] == 1)
			{
				PlayerActionMessage(playerid,15.0,"takes a cell phone from his pocket and dials a number");
			}
			else
			{
				PlayerActionMessage(playerid,15.0,"takes a cell phone from her pocket and dials a number");
			}
			SetPlayerSpecialAction(playerid,SPECIAL_ACTION_USECELLPHONE);
			new phonenumb = strval(tmp);
			if(phonenumb == 911)
			{
				SendClientMessage(playerid, COLOR_WHITE, "[Operator:] Do you require emergency assistance?");
				SendClientMessage(playerid, COLOR_WHITE, "[Info:] Type yes or no");
				Mobile[playerid] = 911;
				return 1;
			}
			if(phonenumb == 411)
			{
				SendClientMessage(playerid, COLOR_WHITE, "[Operator:] Hello, Los Santos Transport Company, how may i be of assistance?");
				SendClientMessage(playerid, COLOR_WHITE, "[Info:] Please keep your call brief and all in one sentence");
				Mobile[playerid] = 411;
				return 1;
			}
			if(phonenumb == 211)
			{
				SendClientMessage(playerid, COLOR_WHITE, "[Operator:] Hello, San Andreas News Network, how may i be of assistance?");
				SendClientMessage(playerid, COLOR_WHITE, "[Info:] Please keep your call brief and all in one sentence");
				Mobile[playerid] = 211;
				return 1;
			}
			if(phonenumb == PlayerInfo[playerid][pPhoneNumber])
			{
				SendClientMessage(playerid, COLOR_GREY, "[Error:] That line is being used");
				return 1;
			}
			if(Mobile[playerid] != 255)
			{
				SendClientMessage(playerid, COLOR_GREY, "[Error:] You are already on a call");
				return 1;
			}
			for(new i = 0; i < MAX_PLAYERS; i++)
			{
				if(IsPlayerConnected(i))
				{
					if(PlayerInfo[i][pPhoneNumber] == phonenumb && phonenumb != 0)
					{
						giveplayerid = i;
						Mobile[playerid] = giveplayerid;
						if(IsPlayerConnected(giveplayerid))
						{
						    if(giveplayerid != INVALID_PLAYER_ID)
						    {
						        if(PhoneOnline[giveplayerid])
						        {
						            SendClientMessage(playerid, COLOR_GREY, "[Error:] That player's phone is turned off");
						            return 1;
						        }
								if(Mobile[giveplayerid] == 255)
								{
									format(string, sizeof(string), "[Phone:] Dialing... - ContactID: %s (%d)", GetPlayerNameEx(playerid),PlayerInfo[playerid][pPhoneNumber]);
									SendClientMessage(giveplayerid, COLOR_WHITE, string);
									PlayerActionMessage(giveplayerid,15.0,"'s phone starts ringing");
                                    StartedCall[playerid] = 1;
                                    StartedCall[giveplayerid] = 0;
									return 1;
								}
							}
						}
						else
						{
							SendClientMessage(playerid, COLOR_GREY, "[Error:] That player is on another phone call");
						}
					}
				}
			}
		}
		return 1;
	}
SheikhC is offline   Reply With Quote
Old 21/08/2014, 06:25 AM   #16
XaibBaba
Huge Clucker
 
XaibBaba's Avatar
 
Join Date: Jun 2014
Location: Pakistan
Posts: 235
Reputation: 12
Default Re: Phone Textdraw (clickable, GTA IV design)

Nice Work
__________________
Looking for a light RP server?

Add us in your fav!
Alrium Roleplay Live Yo' Lyf
XaibBaba is offline   Reply With Quote
Old 21/08/2014, 09:27 AM   #17
iFarbod
Gangsta
 
Join Date: Jan 2014
Location: Los Santos (HD Universe)
Posts: 655
Reputation: 59
Default Re: Phone Textdraw (clickable, GTA IV design)

Nice job. Looks cool.
iFarbod is offline   Reply With Quote
Old 21/08/2014, 10:48 AM   #18
VenomMancer
Gangsta
 
VenomMancer's Avatar
 
Join Date: May 2013
Location: Indonesia (Manado)
Posts: 640
Reputation: 28
Default Re: Phone Textdraw (clickable, GTA IV design)

Nice works
VenomMancer is offline   Reply With Quote
Old 17/06/2019, 01:27 PM   #19
ashleymeah
Little Clucker
 
ashleymeah's Avatar
 
Join Date: Sep 2013
Location: London, UK
Posts: 12
Reputation: 0
Default Re: Phone Textdraw (clickable, GTA IV design)

still to this day, this is one of the best looking phones iv seen available for download. I feel this has been underappreciated because its visuals for a phone and not a actual phone system but come on? how many of those exist.

I personally will be using this because im a programmer who does not like to mess with getting textdraws lined up, im too OCD and this is brilliant for a RP server.
__________________


samp.nl-roleplay.com || Join us on discord ! || https://discord.gg/CPgjBfU
ashleymeah is offline   Reply With Quote
Old 17/06/2019, 04:17 PM   #20
Dignity
High-roller
 
Dignity's Avatar
 
Join Date: May 2013
Location: Belgium
Posts: 1,623
Reputation: 1163
Default Re: Phone Textdraw (clickable, GTA IV design)

Quote:
Originally Posted by ashleymeah View Post
still to this day, this is one of the best looking phones iv seen available for download. I feel this has been underappreciated because its visuals for a phone and not a actual phone system but come on? how many of those exist.

I personally will be using this because im a programmer who does not like to mess with getting textdraws lined up, im too OCD and this is brilliant for a RP server.
Thanks man

Sadly this is a very bad way of using textdraws. Half of the textdraws could be global textdraws and you don't need to use an array for player textdraws..

Still appreciated nonetheless
Dignity is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] I phone design! Mckarlis Filterscripts 13 28/04/2014 10:42 AM
TextDraw isn't clickable Shawwarma Scripting Help 3 05/08/2013 05:36 PM
TextDraw Clickable EditPawn Scripting Help 1 10/02/2013 05:43 PM


All times are GMT. The time now is 07:46 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.