Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Flag System?


Hazard153-1
 Share

Recommended Posts

I looked through the EE commands and didn't see anything resembling them…
I'm trying to use a flag system, where if the player is new, it warps them to a "tutorial" map. like...

if GetPlayerFlag(index,flag#) = 0 then
playerwarp, etc

I come from Odyssey online... so thats what I'm used to.. same basic system, some things are just named differently... But anyway is there some way to do that? Or am I just stupid and overlooking it.
Link to comment
Share on other sites

if your looking for a GetPlayerFlag then here ya go

```
'******************************
Function GetPlayerFlag(Index, Flag)
'******************************
Dim A
A = GetVar("Flags.ini", GetPlayerName(Index), Flag) + 0
GetPlayerFlag = A
End Function

'******************************
Sub SetPlayerFlag(Index, Flag, Value)
'******************************
Call PutVar("Flags.ini", GetPlayerName(Index), Flag, Value)
End Sub

```
I also provided a setplayerflag command
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...