here to put this ?
#1

look i made this , where do i put this ?
forward Tele(playerid);
public Tele(playerid)
{
if(tele[playerid] == 1)
{
if(PlayerAtPos(playerid,546,456.6,466)
{
SetPlayerPos(playerid,54645,64564,56.6);
SendClientMessage(playerid,0x045BBAA,"You have gone to the stadium");
}
}
return 1;
}
PROBLEMS:
And those are some fake numbers .. but the rest is good ... and PlayerAtPos i made that myself ..... now if i put this at onplayerupdate Tele(playerid); , the message box goes crazy ! it says you have gone to hte stadium milions of times ... so where do i put it ?and i tried to not place it anywhere .. and it didnt work .. and i put this as a time for 1 second at ongamemode init and hte message box went crazy again.And where do i put this ?
Reply
#2

a public you do not put it under another public. add it OUTSIDE
Reply
#3

PlayAtPos why not just use IsPlayerInRangeOfPoint or PlayerToPoint..?
Reply
#4

Quote:
Originally Posted by [L3th4l]
Посмотреть сообщение
a public you do not put it under another public. add it OUTSIDE
i didnt do taht .. i did this
public OnPlayerUpdate(playerid)
{
Tele(playerid);

}
thats what i did .. i didnt put the entire thing inside a public
Reply
#5

Quote:
Originally Posted by Venturas
Посмотреть сообщение
PlayAtPos why not just use IsPlayerInRangeOfPoint or PlayerToPoint..?
i made that myself , thats why i am using that
Reply
#6

so any suggestions ?
Reply
#7

Bottom of your script outside other functions.
Reply
#8

SetPlayerPos(playerid,54645,64564,56.6);

what is these coords, omg, your stadium is it on moon?
Reply
#9

Quote:
Originally Posted by [HiC]TheKiller
Посмотреть сообщение
Bottom of your script outside other functions.
What do you mean ?
Reply
#10

you have to use this only when you need it. Set timer to check player pos, then if PlayerAtPos, set his pos to another. Hope you understand me. :
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)