16-09-2008, 01:28 AM
DarkC Wrote:You should be able to do this...Someone correct me if I'm wrong, as to I haven't tested this out, sense I'm working on something else at the moment. But I'm pretty sure this'll work...
Code:Private Sub cmdkill_Click()
If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then
Call SendData(CKillPlayer & SEP_CHAR & MyText & END_CHAR)
End If
End Sub
Then you just need to add the CKillPlayer into the modEnumerations of course, and add all the code in my tutorial to the server. Then it should work...Tell me if it does. =D
It says "You cannot kill yourself" It's targeting me, because theres no way to make it link to the textbox. Thats all I need to know, is how to make it link to the textbox, rather than mytext.
EDIT: This worked:
Code:
Private Sub cmdkill_Click()
If GetPlayerAccess(MyIndex) >= ADMIN_MAPPER Then
Call SendData(CKillPlayer & SEP_CHAR & Txtchar.Text & END_CHAR)
End If
End Sub