Activator in der Zelle mit folgendem Script: Code: scn ActivatorScript short bQuestion int iButon Begin Gamemode if ( Player.IsInFaction <Fraktion> ) Return endif if ( bQuestion ) set iButton to GetButtonPressed if ( iButton == 0 ) Player.SetFactionRank <Fraktion>, 0 endif Return elseif ( GetInSameCell PlayerRef ) set bQuestion to 1 set iButton to GetButtonPressed MessageBox "Willst du <Fraktionsname> beitreten?", "Ja", "Nein" endif End Funktioniert nur ein mal. Mehrmalige Frage wird komplizierter. Da dann am besten über OnActivate die MessageBox auslösen.
scn ActivatorScript short bQuestion int iButon Begin Gamemode if ( Player.IsInFaction <Fraktion> ) Return endif if ( bQuestion ) set iButton to GetButtonPressed if ( iButton == 0 ) Player.SetFactionRank <Fraktion>, 0 endif Return elseif ( GetInSameCell PlayerRef ) set bQuestion to 1 set iButton to GetButtonPressed MessageBox "Willst du <Fraktionsname> beitreten?", "Ja", "Nein" endif End
-- Ich kam, sah, und konnte meinen Augen nicht trauen
Foren-Regeln