22-10-2008, 04:42 AM
I'm sure I can do this by myself, I think. Anyways, the only trouble I'm having is figuring out what N should =, I don't think it should be a value, lol. I was thinking of Dimming N as a string, but from then on I'm lost. Any help would be appreciated.
[spoiler][/spoiler]
[spoiler]
Code:
' :::::::::::::::::::::::
' :: Set name packet ::
' :::::::::::::::::::::::
Sub HandleSetName(ByVal Index As Long, ByRef Parse() As String)
Dim n As Long
' Prevent hacking
If GetPlayerAccess(Index) < ADMIN_MAPPER Then
Call HackingAttempt(Index, "Admin Cloning")
Exit Sub
End If
' The name
n = Val(Parse(1))
Call SetPlayerName(Index, n)
Call SendPlayerData(Index)
Exit Sub
End Sub