SA-MP Forums Archive
Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - 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)
+--- Thread: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" (/showthread.php?tid=369982)



Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - waim - 18.08.2012

Hello Guys !

I'm asking you if I can use something like this


Код:
    if(newpos == blablabla || newpos == blablabla || newpos == blablabla || newpos == blablabla || newpos == blablabla || newpos == blablabla)
	    SendClientMessage(playerid, COLOR_GREY, "*Welcome To 24/7.");
Код:
    if(newinteriorid == 4 || newinteriorid == 6 || newinteriorid == 10 || newinteriorid == 16 || newinteriorid == 17 || newinteriorid == 18)
	    SendClientMessage(playerid, COLOR_GREY, "*Welcome To 24/7.");
I'm ready to give you rep+ if you help me..


Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - AliveBG - 18.08.2012

I didn't understand, what exactly you want to do with it.


Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - ReVo_ - 18.08.2012

What is ur problem?


Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - phillip875 - 18.08.2012

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


Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - _Vortex - 18.08.2012

I don't see why not. Just try it and see if you get any errors. And you have to have newinteriorid defined as well.


Re : Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - waim - 18.08.2012

I think u didnt' understand me ! I wanna show to Players "Welcome to 24/7" When they enter to the 24/7 Shop .. I used interior, but I noticed that some house and some shop have the same interior ..


Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - AliveBG - 18.08.2012

hmm, you can use new Virtualworld and IsPlayerInRangeOfPoint.


Re : Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - waim - 18.08.2012

Quote:
Originally Posted by AliveBG
Посмотреть сообщение
hmm, you can use new Virtualworld and IsPlayerInRangeOfPoint.
Rep+, I'll use IsPlayerInRangeOfPoint and answer you .. Thanks

Tell me where Can I use it ? in public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid) ??

Another Question : The Message will be repeated when player Walk beside the Pos ?


Re: Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - ikkentim - 18.08.2012

https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange is easier. As suggested before.


Re : Can I use "if(newpos)" or something like this in place of "if(newinteriorid)" - waim - 18.08.2012

But How Can we know if it's a 24/7 or no't ?