Random giving money ?
#1

It is possible to make cmd are giving random money ?
I using strcmp, Im not asking for you guys to make a cmd just explain to me how make a random giving cash.
Reply
#2

Use Random
Example:
Код:
new money = random(1000); //Random money you will get between 0 - 1000
GivePlayerMoney(playerid,money);
Reply
#3

well as if i think keep al the players in an array and use the rand function in array to give randomly someone cash
Reply
#4

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
Use Random
Example:
Код:
new money = random(1000); //Random money you will get between 0 - 1000
GivePlayerMoney(playerid,money);
Thanks but,
What i need write into here i know that possible make random stuffs but how to place money into this one ?
pawn Код:
new Float:RandomSpawn[][4] =
{
    // Positions, (X, Y, Z and Facing Angle)
    {-2796.9854, 1224.8180, 20.5429, 192.0335},
    {-2454.2170, 503.8759, 30.0790, 267.2932},
    {-2669.7322, -6.0874, 6.1328, 89.8853}
};

Quote:
Originally Posted by [bot]fatninja
Посмотреть сообщение
well as if i think keep al the players in an array and use the rand function in array to give randomly someone cash
Didnt get your point.
What i gona make not going be just a cmd to give random cash to player..
Reply
#5

That's a random spawns. Check this thread
https://sampforum.blast.hk/showthread.php?tid=162488
Reply
#6

Quote:
Originally Posted by newbienoob
Посмотреть сообщение
That's a random spawns. Check this thread
https://sampforum.blast.hk/showthread.php?tid=162488
I dont need random spawn, i need random giving money you cannot read ?
Reply
#7

well i thought you need to give money to some random guy insted of giveing someone random money
and he has alredy wrote about your need
Reply
#8

Quote:
Originally Posted by [bot]fatninja
Посмотреть сообщение
well i thought you need to give money to some random guy insted of giveing someone random money
/givecash ?
Reply
#9

Any idea ? How to make random giving cash?
Reply
#10

well would you mind what you want to do exactly so i can just give you your codes
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)