Can I use "if(newpos)" or something like this in place of "if(newinteriorid)"
#1

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..
Reply
#2

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

What is ur problem?
Reply
#4

https://sampwiki.blast.hk/wiki/OnPlayerInteriorChange
Reply
#5

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.
Reply
#6

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

hmm, you can use new Virtualworld and IsPlayerInRangeOfPoint.
Reply
#8

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 ?
Reply
#9

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)