0662: printstring "Player Finder made by TH3RM4L, visit www.ugbase.eu and www.blast.hk"
0B34: samp register_client_command "poisk" to_label @13
0B34: samp register_client_command "mypoisk" to_label @13
0B34: samp register_client_command "stoppoisk" to_label @13
31@ = 0
30@ = 0
:13
wait 0
if
31@ == 1
else_jump @13
if
SAMP.IsPlayerConnected(2@)
else_jump @13
3@ = SAMP.GetActorHandleByPlayerID(2@)
if
856D: not actor 3@ defined
else_jump @13
SAMP.GetStreamedOutPlayerPos(2@, 9@, 10@, 11@)
12@ = Marker.CreateIconAndSphere(41, 9@, 10@, 11@)
wait 750
Marker.Disable(12@)
:13
if
056D: actor 3@ defined
else_jump @13
Actor.StorePos(3@, 5@, 6@, 7@)
8@ = Marker.CreateIconAndSphere(41, 5@, 6@, 7@)
wait 750
Marker.Disable(8@)
jump @13
:13
if
30@ == 0
else_jump @13
SAMP.IsCommandTyped(0@)
if
0AD4: 1@ = scan_string 0@ format "%d" 2@
else_jump @13
if
SAMP.IsPlayerConnected(2@)
else_jump @13
30@ = 1
31@ = 1
4@ = SAMP.GetPlayerNickname(2@)
chatmsg "Marker set on the player %s, ID %d. Use [/stoppoisk] to stop finding." 6330577 4@ 2@
SAMP.CmdRet
jump @13
:13
if
31@ == 1
else_jump @13
30@ = 0
31@ = 0
Marker.Disable(12@)
Marker.Disable(8@)
chatmsg "The finding has been stopped succefully." 6330577
SAMP.CmdRet
jump @13
:13
if
31@ == 1
else_jump @13
chatmsg "You are finding %s, ID %d." 6330577 4@ 2@
SAMP.CmdRet
jump @13
:13
chatmsg "The player which you were finding has disconnected." 12517376
Marker.Disable(12@)
Marker.Disable(8@)
30@ = 0
31@ = 0
jump @13
:13
Marker.Disable(12@)
Marker.Disable(8@)
wait 100
SAMP.IsCommandTyped(0@)
if
0AD4: 1@ = scan_string 0@ format "%d" 2@
else_jump @13
if
SAMP.IsPlayerConnected(2@)
else_jump @13
30@ = 1
31@ = 1
4@ = SAMP.GetPlayerNickname(2@)
chatmsg "Marker set on the player %s, ID %d. Use [/stoppoisk] to stop finding." 6330577 4@ 2@
SAMP.CmdRet
jump @13
:13
chatmsg "USAGE: /poisk <playerID>" 12566463
SAMP.CmdRet
jump @13
:13
chatmsg "Invalid ID." 12517376
30@ = 0
31@ = 0
SAMP.CmdRet
jump @13
:13
chatmsg "You are not finding anyone." 16507548
SAMP.CmdRet
jump @13