Drop money +Rep!
#1

Hello, i need script Droping money but droping the bag money if u can help please post
Reply
#2

The first thing I can think of is using pickups and onplayerpickuppickup, like
pawn Код:
#define MAX_DROP_MONEY 100 // define the ammount of dropped moneys you want.
dropmoney[MAX_DROP_MONEY]
//you could do a money value here to and store the value of the money in it and give the pickingupplayer the money.

OnPLayerPickUpPickup(pickupid){

for(new i = 0; i < MAX_DROP_MONEY; i++){
if(pickupid == dropmoney[i]){
//givemoney command here
dropmoney[i] = 0;
}
}
stock DropMoney(playerid){
for(new i = 0; i<MAX_DROP_MONEY; i++){
if(dropmoney[i] == 0){
dropmoney[i] = CreatePickup([bag model], 4(or5), x,y,z,vw);//Use a moneybag item here if you want it to look as a moneybag and type 4,5 to make it dissapear id none picks it up
}
}
}
here is more info about the pickup function:
https://sampwiki.blast.hk/wiki/CreatePickup
here is more information about the models(hope you find the money bag here)
https://sampwiki.blast.hk/wiki/Game_Object_ID_List
here is more info about the pickup type(i suggest you to use 4 or 5){
https://sampwiki.blast.hk/wiki/PickupTypes

Hope It helped
Reply
#3

Quote:
Originally Posted by Ranama
Посмотреть сообщение
The first thing I can think of is using pickups and onplayerpickuppickup, like
pawn Код:
#define MAX_DROP_MONEY 100 // define the ammount of dropped moneys you want.
dropmoney[MAX_DROP_MONEY]
//you could do a money value here to and store the value of the money in it and give the pickingupplayer the money.

OnPLayerPickUpPickup(pickupid){

for(new i = 0; i < MAX_DROP_MONEY; i++){
if(pickupid == dropmoney[i]){
//givemoney command here
dropmoney[i] = 0;
}
}
stock DropMoney(playerid){
for(new i = 0; i<MAX_DROP_MONEY; i++){
if(dropmoney[i] == 0){
dropmoney[i] = CreatePickup([bag model], 4(or5), x,y,z,vw);//Use a moneybag item here if you want it to look as a moneybag and type 4,5 to make it dissapear id none picks it up
}
}
}
here is more info about the pickup function:
https://sampwiki.blast.hk/wiki/CreatePickup
here is more information about the models(hope you find the money bag here)
https://sampwiki.blast.hk/wiki/Game_Object_ID_List
here is more info about the pickup type(i suggest you to use 4 or 5){
https://sampwiki.blast.hk/wiki/PickupTypes

Hope It helped
I need one ready, i can not script new one
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)