damnet007 Posted November 30, 2005 Share Posted November 30, 2005 i have probs with my rpg script --> when the car bomb blows up once it doesnt turn off so people cant use the car unless i go into the data files and manually remove it. also, my timebomb cant be rigged as wehn i type !rig it says i can only rig properties, when im at a property. im really lost THE CAR BOMB: } elseif ($readini(rpg.data.ini,rigged,$mta.vehicle($1,$2)) != $null) { mta.msg $1 $2 Tick! Tick! Tick! GET OUT OF THE CAR! $chr(124) 3 Secs! !.timer 1 5 !remini -n "rpg.data.ini" ) rigged $mta.vehicle($1,$2) !.timer 1 5 !remini -n "rpg.data.ini" ) riggedby $mta.vehicle($1,$2) $+(!.timerkill,.,$1,.,$2) 1 3 rpg.bombkill $1- } } alias rpg.bombkill { !.timer 5 0 mta.slap $1 $2 !.timer 1 2 mta.say $1 $mta.name($1,$2) Blew up By $readini(rpg.data.ini,riggedby,$mta.vehicle($1,$2)) $+ 's Car Bomb! } } alias rpg.rig { if $mta.vehicle($1,$2).name != foot { if $rpg.items($1,$2) == Bomb { !writeini -n "rpg.data.ini" rigged $mta.vehicle($1,$2) 1 !writeini -n "rpg.data.ini" riggedby $mta.vehicle($1,$2) $mta.name($1,$2) !remini -n "rpg.ini" $mta.name($1,$2) items mta.msg $1 $2 Rigged: $mta.vehicle($1,$2).name } else mta.msg $1 $2 You are not carrying a bomb } THE TIMEBOMB (FOR PROPERTIES): } elseif $rpg.items($1,$2) == Timebomb { if $rpg.areatype($1,$2) == Property) { if ($4 < 300 || $4 == $null) { var %a = $iif($4 == $null,120,$4) !remini -n "rpg.ini" $mta.name($1,$2) items !.timer 1 $calc(%a - 2) !writeini -n "rpg.ini" timebombed $mta.name($1,$2) $rpg.area($1,$2) !.timer 1 %a rpg.timebombed $1- mta.msg $1 $2 RPG > Timebomb - Timer: $duration(%a) - Area: $rpg.area($1,$2) } else mta.msg $1 $2 RPG > Error: /msg rig (1-300) } else mta.msg $1 $2 RPG > You can only rig properties } else mta.msg $1 $2 RPG > You are not carrying a Timebomb } alias rpg.timebombed { var %a = 0,%b while %a < $mta.maxplayers($1) { if $rpg.area($1,%a) == $readini(rpg.ini,timebombed,$mta.name($1,$2)) { !.timer $calc($calc($mta.health($1,%a) / 20) + 1) 0 mta.slap $1 %a !inc %b } !inc %a } if (%b) { !writeini -n "rpg.ini" $mta.name($1,$2) cash $calc($rpg.cash($1,$2) + $calc(1000 * %b)) mta.msg $1 $2 Blew up %b people - Gained: $chr(36) $+ $calc(1000 * %b) !.timer 1 3 mta.say $1 $mta.name($1,$2) Timebombed $readini(rpg.ini,timebombed,$mta.name($1,$2)) and killed %b } } would be really greatful if this could be sorted, thanx Link to comment
Omg Posted December 1, 2005 Share Posted December 1, 2005 Well no can suggest anything unless u provide what mta.exit has to say in your script. Link to comment
damnet007 Posted December 1, 2005 Author Share Posted December 1, 2005 my mta.exit says this: } on *:SIGNAL:mta.exit:{ $+(!.timerkill,.,$1,.,$2) off if $calc($rpg.petrol($1,$3) - $calc($calc($ctime - $rpg.entertime($1,$3)) / 10)) < 0 { !writeini -n "rpg.data.ini" petrol $3 0 } else !writeini -n "rpg.data.ini" petrol $3 $calc($rpg.petrol($1,$3) - $calc($calc($ctime - $rpg.entertime($1,$3)) / 10)) } thats all i could find in my rpg script Link to comment
Recommended Posts