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

Green Bottles

Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Green Bottles's Achievements

Newbie

Newbie (1/14)

0

Reputation

  1. This is the first script I've had problems with in a long time. Can someone help? Script: ``` ' Executes when a player presses the CONTROL key. Sub OnAttack(Index, Damage) Dim Target If Int(Damage) > 0 Then If GetPlayerClass (Target) = GetPlayerClass (Index) Then Call PlayerMsg (Index, "Don't attack your allies") Else If Int(GetPlayerTarget(Index)) > 0 Then Target = GetPlayerTarget(Index) Call DamagePlayer(Index, Target, Damage) Else Target = GetPlayerTargetNpc(Index) Call DamageNPC(Index, Target, Damage) End If End If End If End Sub ```
×
×
  • Create New...