Vice City Multiplayer
VC:MP 0.3 => mIRC/pawn Scripting => Topic started by: [DGC]Doomer on March 21, 2009, 02:14:57 pm
-
How to make dead players drop money (with the money model!)?
-
It's easy. I made it and i can say: it's really easy. Here some tips:
* if a player will be killed -> create money pickup
* if someone collect this pickup -> delete pickup & add X money
-
errm... ? script? :-\
-
It's easy. I made it and i can say: it's really easy.
I said u some tips, can u try it first do it by your own? Its really easy. If u will try but that wont be this what u want, then ask about ready script ;)
-
mine script wont load up x.x
-
What did u tried? Show us ur script, then we can help u with debugging it.
-
dont have it anymore (i deleted it :-X)
-
Make a new one then
-
what is the commands to create money ?
also what is the command to execute a script when its picked up?
because when i died (in previous script nothing happens x.x)
-
1) If ur using GUS it's vcmp.cash+ <id> <amount>
2) the pickup signal
-
ah ok thanks ^^
but the money respawns .... what i must do?
i use FBS !
-
U need to delete the pickup.
-
i meant which command to delete pickup?
-
Sorry, but just look in your script, You will find it
-
here is the pickup script with signals. is there some usable?
cuz i dont know how to delete pickups :-\
on *:SIGNAL:vcmp.pickup.hit:{
; $1 = ServerID, $2 = PlayerID, $3 = PickupID, $4 = PickupType
if ($4 == 407) {
FBS.PropInfo $3 $2
timer.spawnpickup 1 3 vcmp.respawnpickup $1 $3
}
if ($4 == 337) {
FBS.IncCash $1 $2 $rand(1,10000)
vcmp.msg $1 $2 picked up some money fresh from fight
}
;-------------------------------------/|\ Money pickup /|\------------------------------------------------------
!.signal vcmp.pickuphit $1-
}
on *:SIGNAL:vcmp.pickup.new:{
; $1 = ServerID, $2 = PickupID, $3 = PickupType, $4 = X, $5 = Y, $6 = Z
!.signal vcmp.pickupnew $1-
}
on *:SIGNAL:vcmp.pickup.delete:{
; $1 = ServerID, $2 = PickupID
!.signal vcmp.pickupdelete $1-
}
-
At the end of 337 pickup signal add this:
vcmp.delpickup $1 $3
-
[AoD]NC you are still a hero ;D Thank to both of ya :D