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