zach4873 Posted February 5, 2009 Author Share Posted February 5, 2009 would this work ? if so then cool my first newbie script :) if not can someone explain why and how to fix it also idk if CallTargetName is an actual thing and if its not what i want it to do is send a global message that an admin ( if possible could it send the admins name to ?) killed a player``` case "/kill" If GetPlayerAccess(Index) = >3 If GetPlayerTarget(Index) = >0 Send TargetDamage(Index) = 100000 Call GlobalMsg(Index, "An Admin has just killed "CallTargetName``` Link to comment Share on other sites More sharing options...
Techno 5.0 Posted February 5, 2009 Share Posted February 5, 2009 what happens if the player has more than 100000 health?loland im not all to sure butwouldnt it be like this…Call GlobalMsg(Index, "An Admin has just killed "CallTargetName")instead of ....Call GlobalMsg(Index, "An Admin has just killed "CallTargetName Link to comment Share on other sites More sharing options...
zach4873 Posted February 5, 2009 Author Share Posted February 5, 2009 ooh yeh well thats just a typo :P just wondering if the script would work ?edit: and if they have over that much health i type it again :Pedit2: okay well tested it and it didnt work so if any experianced scripters could tell me why id <3 u lol Link to comment Share on other sites More sharing options...
Dark_Marine_123 Posted February 5, 2009 Share Posted February 5, 2009 @zach4873:> would this work ? if so then cool my first newbie script :) if not can someone explain why and how to fix it also idk if CallTargetName is an actual thing and if its not what i want it to do is send a global message that an admin ( if possible could it send the admins name to ?) killed a player> > ```> case "/kill"> If GetPlayerAccess(Index) = >3> If GetPlayerTarget(Index) = >0> Send TargetDamage(Index) = 100000> Call GlobalMsg(Index, "An Admin has just killed "CallTargetName> > ```Holy…That is a mess.``` Case "/kill" If GetPlayerAccess(Index) > 2 Then If GetPlayerAccess(Target) < GetPlayerAccess(Index) Then If GetPlayerTarget(Index) > 0 Then Call DamagePlayer(Index, Target, GetPlayerMaxHP(Target)) Call GlobalMsg(Index, "An Admin has just killed " & Target, BRIGHTRED)] Exit Sub End If End If End If``` Link to comment Share on other sites More sharing options...
Drag0n Posted February 9, 2009 Share Posted February 9, 2009 Lol. True. Link to comment Share on other sites More sharing options...
Squiddle Posted February 12, 2009 Share Posted February 12, 2009 Hmmm, Riney how come I've never seen you on the forums before? Anyways, I'm not an expert scripter, but Riney's looks right. I would have done it like this:```Case "/kill" If GetPlayerAccess(Index) > 2 Then If GetPlayerAccess(Target) < GetPlayerAccess(Index) Then If GetPlayerTarget(Index) > 0 Then Call DamagePlayer(Index, Target, GetPlayerMaxHP(Target)) Call GlobalMsg(Index, "An Admin has just killed " & Target, BRIGHTRED)] End If End If End IfEnd Sub```But that wouldn't work now would it? Link to comment Share on other sites More sharing options...
Rithy58 Posted February 12, 2009 Share Posted February 12, 2009 Actually this one will probably work.Sincerely,Rithy Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now