Well ive downloaded a spectator scrpit from monglova but it keeps saying unknown command .. i don't find the error in the script therefore i will post entire source if someone finds whats the problem pls tell me.
author is mgmoldova .. HELP THX
Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
0662: printstring "spec"
0662: printstring "Made by MGMOLDOVA"
if
0@ = SAMP.Base()
else_jump @NONAME_49
0A93: end_custom_thread
:NONAME_49
not SAMP.Available
else_jump @NONAME_69
wait 100
jump @NONAME_49
:NONAME_69
20@ = 0
14@ = Render.CreateFont("Arial", 12, 5)
0B34: samp register_client_command "stats" to_label @NONAME_1274
0B34: samp register_client_command "stat" to_label @NONAME_1265
alloc 10@ 260
:NONAME_127
wait 0
if
20@ == 1
else_jump @NONAME_1203
:NONAME_149
30@ = SAMP.GetActorHandleByPlayerID(6@)
7@ = SAMP.GetPlayerNickname(6@)
:NONAME_165
wait 1
if
Actor.Dead(30@)
else_jump @NONAME_194
Camera.Restore_WithJumpCut
20@ = 2
:NONAME_194
03F0: enable_text_draw 1
SAMP.GetScreenResolution(27@, 26@)
26@ /= 4
format 10@ "{e9c600}Nick: {FFFFFF}%s[%d]" 7@ 6@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
8@ = SAMP.GetPlayerHealthByActorHandle(6@)
format 10@ "{e9c600}HP: {FFFFFF}%d" 8@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
8@ = SAMP.GetPlayerPing(6@)
format 10@ "{e9c600}Ping: {FFFFFF}%d" 8@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
1@ = SAMP.GetPlayerStruct(6@)
1@ += 8
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0
2@ += 5
0A8D: 17@ = read_memory 2@ size 1 virtual_protect 0
format 10@ "{e9c600}Player State: {FFFFFF}%d" 17@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
1@ = SAMP.GetPlayerStruct(6@)
1@ += 8
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0
2@ += 4
0A8D: 17@ = read_memory 2@ size 1 virtual_protect 0
format 10@ "{e9c600}Player Team: {FFFFFF}%d" 17@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
1@ = SAMP.GetPlayerStruct(6@)
1@ += 8
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0
2@ += 401
0A8D: 17@ = read_memory 2@ size 4 virtual_protect 0
format 10@ "{e9c600}AFK state: {FFFFFF}%d" 17@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
1@ = SAMP.GetPlayerStruct(6@)
1@ += 8
0A8D: 2@ = read_memory 1@ size 4 virtual_protect 0
2@ += 135
0A8D: 17@ = read_memory 2@ size 1 virtual_protect 0
format 10@ "{e9c600}SpecialAction: {FFFFFF}%d" 17@
Render.DrawText(14@, 10@, 0, 26@, -13261)
26@ += 20
0470: 17@ = actor 30@ current_weapon
format 10@ "{e9c600}Current weapon: {FFFFFF}%d" 17@
Render.DrawText(14@, 10@, 0, 26@, -13261)
0085: 31@ = 6@ // (int)
if
key_down 37
else_jump @NONAME_1060
call @NONAME_1237 1 37
:NONAME_959
31@ > -1
else_jump @NONAME_1060
31@ -= 1
if
SAMP.IsPlayerConnected(31@)
else_jump @NONAME_1053
30@ = SAMP.GetActorHandleByPlayerID(31@)
if
056D: actor 30@ defined
else_jump @NONAME_1053
20@ = 1
Camera.Restore_WithJumpCut
Camera.OnPed(30@, 4, 1)
0085: 6@ = 31@ // (int)
jump @NONAME_149
:NONAME_1053
jump @NONAME_959
:NONAME_1060
if
key_down 39
else_jump @NONAME_1189
call @NONAME_1237 1 39
:NONAME_1087
not 31@ >= 1000
else_jump @NONAME_1189
31@ += 1
if
SAMP.IsPlayerConnected(31@)
else_jump @NONAME_1182
30@ = SAMP.GetActorHandleByPlayerID(31@)
if
056D: actor 30@ defined
else_jump @NONAME_1182
20@ = 1
Camera.Restore_WithJumpCut
Camera.OnPed(30@, 4, 1)
0085: 6@ = 31@ // (int)
jump @NONAME_149
:NONAME_1182
jump @NONAME_1087
:NONAME_1189
20@ == 2
else_jump @NONAME_165
:NONAME_1203
if
20@ == 2
else_jump @NONAME_1230
Camera.Restore_WithJumpCut
20@ = 0
:NONAME_1230
jump @NONAME_127
:NONAME_1237
key_down 0@
else_jump @NONAME_1260
wait 0
jump @NONAME_1237
:NONAME_1260
ret 0
:NONAME_1265
20@ = 2
SAMP.CmdRet
:NONAME_1274
SAMP.IsCommandTyped(5@)
if
0AD4: 5@ = scan_string 5@ format "%d" 6@
else_jump @NONAME_1398
30@ = SAMP.GetActorHandleByPlayerID(6@)
if and
SAMP.IsPlayerConnected(6@)
056D: actor 30@ defined
else_jump @NONAME_1360
20@ = 1
Camera.Restore_WithJumpCut
Camera.OnPed(30@, 4, 1)
jump @NONAME_1398
:NONAME_1360
chatmsg "Player not streamed or dead." 16711680
:NONAME_1398
SAMP.CmdRet
author is mgmoldova .. HELP THX