-
langelot
- Posts: 6
- Joined: Wed May 12, 2010 5:36 am
#1
Post
by langelot » Sun Jul 22, 2012 3:49 am
hello
i've been searching on this forum to find a way to read the actual player.name and then if the player name is xxxxxxxxxx then load a "tag" in my WP file
i've tried
Code: Select all
<onload>
local name = player.name
if name == xxxx then
__WPL:setWaypointIndex(__WPL:findWaypointTag("middle"))
else
__WPL:setWaypointIndex(__WPL:findWaypointTag("end"))
end
</onload>
but it didn't work, i also tried with
didn't work
:/
thanks in advance
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#2
Post
by lisa » Sun Jul 22, 2012 4:15 am
player.Name
Has to be exact, capitals and all
-
langelot
- Posts: 6
- Joined: Wed May 12, 2010 5:36 am
#3
Post
by langelot » Sun Jul 22, 2012 4:21 am
ahhh i'm going to try it right the way, sorry to disturb you with such a rubbish question but i've been searching for hours
thanks anyway
-
lisa
- Posts: 8332
- Joined: Tue Nov 09, 2010 11:46 pm
- Location: Australia
#4
Post
by lisa » Sun Jul 22, 2012 5:23 am
All good, if you open up rom/classes/pawn.lua
Anything that has self. can be player. and yeah it has to be exact
Who is online
Users browsing this forum: Ahrefs [Bot] and 0 guests