Help With getting random cash
#1

how can i get random cash from all player even an random amount for each player
and sendclientmessage to player for the amount he said ( i want to know how to get to know how much he gave) subtract that amount from him and after that amount we got from all other players give it to one player
Reply
#2

BuMp Please help
Reply
#3

I'm confused
This should be something like taxes for each person??
Reply
#4

no for an birthday system
Reply
#5

i dont know maybe
PHP код:
forward BirthDayPresent(playerid);
public 
BirthDayPresent(playerid)
{
         new 
birth[128]; //string for message
         
new money random(50001); // this will give each player random money from 0 to 50000
         
format (birthsizeof(birth), "Happy Birthday you get %d money",money); //format message
         
GivePlayerMoney(playerid,money);
         
SendClientMessage(playerid,0xADD8E6FF,birth);
    return 
1;
}
COMMAND:givepresents(playerid,params[])
{
    for(new 
0MAX_PLAYERSa++)
    {
    
BirthDayPresent(a);
    }
return 
1;

but I'm pretty sure it would not work so
but try it with someone and give me the result

EDIT:
also added on top of this command if you want to just about RCON admin
PHP код:
     if(!IsPlayerAdmin(playerid)) return 0
Reply
#6

it's not a command i got the system ready i know how to get random amount from player but i want to get from every player an different amount and give t to 1 player
Reply
#7

For example, money from all players to birthday
Reply
#8

get money from all players and give it to one player
Reply
#9

So you mean like this?

You have got *AMOUNT OF RANDOM* from PLAYER_NAME?


* I couldn't completely understand what you said, sorry.
Reply
#10

And by chance how to declare this birthday?


DaniceMcHarley, He wants to say that he wants to take money from all players as a gift to jubilarian and to give them

For instance:
50 people, one birthday
to take money from those 49 people and giving them jubilarian

This is at least as understood by all
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)