- 21
- 7
so i made a script but when i click on pizza it isnt working but other ones are working. can you fix my script pls?
{$CLEO .cs}
0000:NOP
REPEAT
wait 100
UNTIL 0AFA:
0B34: "tpp" @TPPD
chatmsg "{70936C}NG:RP TP{70936C}"
chatmsg "{9c9696}[{9c9696}{70936C}NG:RP TP{70936C}{9c9696}[{9c9696}/tpp"
while true
wait 0
end
while true
wait 0
IF
0B3C: samp is_dialog_responded id 1000 button 2@ list_item 3@ input_text 0
THEN
IF AND
2@ == 1
3@ == 1
THEN
CALL @pizza 0
END
IF AND
2@ == 1
3@ == 2
THEN
CALL @LSPD 0
END
IF AND
2@ == 1
3@ == 3
THEN
CALL @BANK 0
END
IF AND
2@ == 1
3@ == 4
THEN
CALL @HOSPITAL_GC 0
END
IF AND
2@ == 1
3@ == 5
THEN
CALL @HOSPITAL_SF 0
END
IF AND
2@ == 1
3@ == 6
THEN
CALL @CH 0
END
IF AND
2@ == 1
3@ == 7
THEN
CALL @CS 0
END
IF AND
2@ == 1
3@ == 8
THEN
CALL @AMMUNATION 0
END
IF AND
2@ == 1
3@ == 9
THEN
CALL @24_7 0
END
IF AND
2@ == 1
3@ == 10
THEN
CALL @DEAL 0
END
END
END
:TPPD
0AC6: 1@ = label @Dialog offset
0B3B: samp show_dialog id 1000 caption "NG:RP TP" text 1@ button_1 "OK" button_2 "CANCEL" style 2
SAMP.CmdRet()
:DIALOG
HEX
"{FF7C00}1) {FFFFFF}PIZZA STACKS" A
"{FF7C00}2) {FFFFFF}LSPD" A
"{FF7C00}3) {FFFFFF}BANK" A
"{FF7C00}4) {FFFFFF}HOSPITAL(GENERAL COUNTY)" A
"{FF7C00}5) {FFFFFF}HOSPITAL(SAN FIERRO)" A
"{FF7C00}6) {FFFFFF}CITY HALL" A
"{FF7C00}7) {FFFFFF}CLOTHING STORE" A
"{FF7C00}8) {FFFFFF}AMMUNATION" A
"{FF7C00}9) {FFFFFF}24/7" A
"{FF7C00}10) {FFFFFF}CAR DEALERSHIP" 0
END
:PIZZA
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR -1723.4148 1372.7019 7.0469
END
RET 0
:LSPD
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1540.9551 -1674.0858 13.5516
END
RET 0
:BANK
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 578.7265 -1215.6383 17.8123
END
RET 0
:HOSPITAL_GC
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 2005.1182 -1442.7598 13.5628
END
RET 0
:HOSPITAL_SF
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR -2658.0017 604.5646 14.4531
END
RET 0
:CH
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1483.406 -1739.494 13.5469
END
RET 0
:CS
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1105.1874 -1457.7727 15.7969
END
RET 0
:AMMUNATION
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1129.5985 -1412.865 13.6155
END
RET 0
:24_7
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1390.4532 -1423.1362 13.5624
END
RET 0
:DEAL
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1647.1155 -1884.1058 13.5528
END
RET 0
{$CLEO .cs}
0000:NOP
REPEAT
wait 100
UNTIL 0AFA:
0B34: "tpp" @TPPD
chatmsg "{70936C}NG:RP TP{70936C}"
chatmsg "{9c9696}[{9c9696}{70936C}NG:RP TP{70936C}{9c9696}[{9c9696}/tpp"
while true
wait 0
end
while true
wait 0
IF
0B3C: samp is_dialog_responded id 1000 button 2@ list_item 3@ input_text 0
THEN
IF AND
2@ == 1
3@ == 1
THEN
CALL @pizza 0
END
IF AND
2@ == 1
3@ == 2
THEN
CALL @LSPD 0
END
IF AND
2@ == 1
3@ == 3
THEN
CALL @BANK 0
END
IF AND
2@ == 1
3@ == 4
THEN
CALL @HOSPITAL_GC 0
END
IF AND
2@ == 1
3@ == 5
THEN
CALL @HOSPITAL_SF 0
END
IF AND
2@ == 1
3@ == 6
THEN
CALL @CH 0
END
IF AND
2@ == 1
3@ == 7
THEN
CALL @CS 0
END
IF AND
2@ == 1
3@ == 8
THEN
CALL @AMMUNATION 0
END
IF AND
2@ == 1
3@ == 9
THEN
CALL @24_7 0
END
IF AND
2@ == 1
3@ == 10
THEN
CALL @DEAL 0
END
END
END
:TPPD
0AC6: 1@ = label @Dialog offset
0B3B: samp show_dialog id 1000 caption "NG:RP TP" text 1@ button_1 "OK" button_2 "CANCEL" style 2
SAMP.CmdRet()
:DIALOG
HEX
"{FF7C00}1) {FFFFFF}PIZZA STACKS" A
"{FF7C00}2) {FFFFFF}LSPD" A
"{FF7C00}3) {FFFFFF}BANK" A
"{FF7C00}4) {FFFFFF}HOSPITAL(GENERAL COUNTY)" A
"{FF7C00}5) {FFFFFF}HOSPITAL(SAN FIERRO)" A
"{FF7C00}6) {FFFFFF}CITY HALL" A
"{FF7C00}7) {FFFFFF}CLOTHING STORE" A
"{FF7C00}8) {FFFFFF}AMMUNATION" A
"{FF7C00}9) {FFFFFF}24/7" A
"{FF7C00}10) {FFFFFF}CAR DEALERSHIP" 0
END
:PIZZA
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR -1723.4148 1372.7019 7.0469
END
RET 0
:LSPD
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1540.9551 -1674.0858 13.5516
END
RET 0
:BANK
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 578.7265 -1215.6383 17.8123
END
RET 0
:HOSPITAL_GC
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 2005.1182 -1442.7598 13.5628
END
RET 0
:HOSPITAL_SF
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR -2658.0017 604.5646 14.4531
END
RET 0
:CH
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1483.406 -1739.494 13.5469
END
RET 0
:CS
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1105.1874 -1457.7727 15.7969
END
RET 0
:AMMUNATION
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1129.5985 -1412.865 13.6155
END
RET 0
:24_7
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1390.4532 -1423.1362 13.5624
END
RET 0
:DEAL
WAIT 0
IF
NOT Actor.Driving($PLAYER_ACTOR)
THEN
SAMP.Spawn
WAIT 300
0972: $PLAYER_ACTOR 1647.1155 -1884.1058 13.5528
END
RET 0