Posts: 211
Threads: 40
Joined: Oct 2009
Reputation:
0
Damn it , i almost forgot about timers .. thanks Baked Banana.
Posts: 211
Threads: 40
Joined: Oct 2009
Reputation:
0
and why do i have to use the 'i' ? whats the difference ? .. mm how about if i make it like .. the largest north Y , lowest south Y .. Lowest X WEst .. the largest X east .. like the turfs .. and if hte player is in that square .. he teleports to the other place ..
how about this ..
forward Teleport(playerid);
public Teleport(playerid)
{
if(IsPlayerInRangeOfPoint(playerid,43.3553,534.53, 534.533);
{
SetPlayerPos(playerid,43.3553,534.53,534.533);
}
return 1;
}
pardon me if i have done any comon mistakes .. i am new in scripting
Posts: 211
Threads: 40
Joined: Oct 2009
Reputation:
0
Got it .. thanks alot ... and i have 1 more question .. look when hte player teleports to the certain position we put .... i want to put the SetPlayerFacingAngle(i,?); ... how to find the facing angle coordinate ? which is that ? x, y ?
Posts: 1,501
Threads: 19
Joined: Nov 2007
Reputation:
0
You would need to go in game and face the way you want it and use /save. Then check your savepositions.txt in your gta directory. The player angle would be like the 4th number. Or you could just try and get it yourself. The N on your mini map is 360 and the opposite of that is 180.