this nigga script make me look mad
[shcode=cpp] {$CLEO}
:NONAME_02
WAIT 0 MS
:NONAME_03
WAIT 0 MS
IF 8AFA: NOT
THEN JUMP @NONAME_03
END
0B34: Create Command "AgON" to @AgON label
0B34: Create Command "SgM4" to @SgM4 label
0C6A: 1@ = new thread at @AgON_WHILE label
0C6a: 25@ = new thread at @SgM4_WHILE label
:NONAME_04
WAIT 0 MS
JUMP @NONAME_04
:AgON
SAMP.IsCommandTyped(0@)
IF 8AD4: NOT 1@ SCAN 0@ FORMAT "%D" 2@
THEN JUMP @ERROR_AgON
END
IF 2@ == 1
THEN CHATMSG "Auto Accept Gun by Shanker & Rough activated. " -1
$AGON = 1
ELSE
IF 2@ == 0
THEN CHATMSG "Auto Accept Gun by Shanker & Rough deactivated. " -1
$AGON = 0
END
END
SAMP.CmdRet
:ERROR_AgON
SAMP.CmdRet
:AgON_WHILE
WHILE TRUE
WAIT 0 MS
IF $AGON == 1
THEN
WHILE $AGON == 1
WAIT 300 MS
ALLOC 4@ = 260
0B75: samp get_chat_string 99 text_to 4@ prefix_to 5@ color_to 6@ prefix_color_to 7@
IF OR
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a M4 for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Silenced Pistol for %s Use (/accept gun %d)." 9@v 11@v 10@ // THANKS TO Springfield BCS HE SHOWED ME HOW TO USE 0AD4
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Desert Eagle for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Shotgun for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a AK47 for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Rifle for %s Use (/accept gun %d)." 9@v 11@v 10@
THEN
SAY "/ag %s" 9@v
END
free 4@
END
END
END
:SgM4
$M4ON = 1
SAMP.CmdRet
:SgM4_WHILE
WHILE TRUE
WAIT 0 MS
IF $M4ON == 1
THEN
FOR 12@ = 0 to 999
IF SAMP.IsPlayerConnected(12@)
THEN
26@ = SAMP.GetActorHandleByPlayerID(12@)
27@ = SAMP.GetActorHandleByPlayerID($PLAYER_ACTOR)
00A0: store_actor 27@ position_to 13@ 14@ 15@
00A0: store_actor 26@ position_to 16@ 17@ 18@
050A: 19@ = distance_between_XYZ 13@ 14@ 15@ and_XYZ 16@ 17@ 18@
IF 8031: NOT 19@ >= 75.0
THEN SAY "/sg %d M4 1" 12@
END
END
END
END
END
SAMP.CmdRet
[/shcode]
:SgM4 not working, when I write it in game, it crash my fkcing game.
I FOUND THE PROBLEM, for guys who wanna know what is wrong in :SgM4, actor must be streamed before you get his pos !
[shcode=cpp]:SgM4_WHILE
WHILE TRUE
WAIT 0 MS
IF $M4ON == 1
THEN
FOR 12@ = 0 to 999
IF SAMP.IsPlayerConnected(12@)
THEN
26@ = SAMP.GetActorHandleByPlayerID(12@)
IF 056D: actor 26@ defined
THEN
00A0: store_actor $PLAYER_ACTOR position_to 13@ 14@ 15@
00A0: store_actor 26@ position_to 16@ 17@ 18@
050A: 19@ = distance_between_XYZ 13@ 14@ 15@ and_XYZ 16@ 17@ 18@
IF 8031: NOT 19@ >= 75.0
THEN SAY "/sg %d M4 1" 12@
END
END
END
END
END
END
SAMP.CmdRet
[/shcode]
global $vars fck my others script but i dont have similary names, idk why
can some one show me how to use 0ab1 here? ( im telling you about [font=Consolas, Menlo, Monaco,]AgON_WHILE & AgON labels )[/font]
http://pastebin.com/8a7j9YfW
[shcode=cpp] {$CLEO}
:NONAME_02
WAIT 0 MS
:NONAME_03
WAIT 0 MS
IF 8AFA: NOT
THEN JUMP @NONAME_03
END
0B34: Create Command "AgON" to @AgON label
0B34: Create Command "SgM4" to @SgM4 label
0C6A: 1@ = new thread at @AgON_WHILE label
0C6a: 25@ = new thread at @SgM4_WHILE label
:NONAME_04
WAIT 0 MS
JUMP @NONAME_04
:AgON
SAMP.IsCommandTyped(0@)
IF 8AD4: NOT 1@ SCAN 0@ FORMAT "%D" 2@
THEN JUMP @ERROR_AgON
END
IF 2@ == 1
THEN CHATMSG "Auto Accept Gun by Shanker & Rough activated. " -1
$AGON = 1
ELSE
IF 2@ == 0
THEN CHATMSG "Auto Accept Gun by Shanker & Rough deactivated. " -1
$AGON = 0
END
END
SAMP.CmdRet
:ERROR_AgON
SAMP.CmdRet
:AgON_WHILE
WHILE TRUE
WAIT 0 MS
IF $AGON == 1
THEN
WHILE $AGON == 1
WAIT 300 MS
ALLOC 4@ = 260
0B75: samp get_chat_string 99 text_to 4@ prefix_to 5@ color_to 6@ prefix_color_to 7@
IF OR
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a M4 for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Silenced Pistol for %s Use (/accept gun %d)." 9@v 11@v 10@ // THANKS TO Springfield BCS HE SHOWED ME HOW TO USE 0AD4
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Desert Eagle for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Shotgun for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a AK47 for %s Use (/accept gun %d)." 9@v 11@v 10@
0AD4: 8@ = scan_string 4@ format "* Arms Dealer %s offered you a Rifle for %s Use (/accept gun %d)." 9@v 11@v 10@
THEN
SAY "/ag %s" 9@v
END
free 4@
END
END
END
:SgM4
$M4ON = 1
SAMP.CmdRet
:SgM4_WHILE
WHILE TRUE
WAIT 0 MS
IF $M4ON == 1
THEN
FOR 12@ = 0 to 999
IF SAMP.IsPlayerConnected(12@)
THEN
26@ = SAMP.GetActorHandleByPlayerID(12@)
27@ = SAMP.GetActorHandleByPlayerID($PLAYER_ACTOR)
00A0: store_actor 27@ position_to 13@ 14@ 15@
00A0: store_actor 26@ position_to 16@ 17@ 18@
050A: 19@ = distance_between_XYZ 13@ 14@ 15@ and_XYZ 16@ 17@ 18@
IF 8031: NOT 19@ >= 75.0
THEN SAY "/sg %d M4 1" 12@
END
END
END
END
END
SAMP.CmdRet
[/shcode]
:SgM4 not working, when I write it in game, it crash my fkcing game.
I FOUND THE PROBLEM, for guys who wanna know what is wrong in :SgM4, actor must be streamed before you get his pos !
[shcode=cpp]:SgM4_WHILE
WHILE TRUE
WAIT 0 MS
IF $M4ON == 1
THEN
FOR 12@ = 0 to 999
IF SAMP.IsPlayerConnected(12@)
THEN
26@ = SAMP.GetActorHandleByPlayerID(12@)
IF 056D: actor 26@ defined
THEN
00A0: store_actor $PLAYER_ACTOR position_to 13@ 14@ 15@
00A0: store_actor 26@ position_to 16@ 17@ 18@
050A: 19@ = distance_between_XYZ 13@ 14@ 15@ and_XYZ 16@ 17@ 18@
IF 8031: NOT 19@ >= 75.0
THEN SAY "/sg %d M4 1" 12@
END
END
END
END
END
END
SAMP.CmdRet
[/shcode]
global $vars fck my others script but i dont have similary names, idk why
can some one show me how to use 0ab1 here? ( im telling you about [font=Consolas, Menlo, Monaco,]AgON_WHILE & AgON labels )[/font]
http://pastebin.com/8a7j9YfW