Random spawn object
#2

Hmmm, maybe this can help you?:
Код:
//After the last #include
#define CreateRandomObject() CreateObject(random(3399), RandomFloat(), RandomFloat(), RandomFloat(), RandomFloat(), RandomFloat(), RandomFloat())
//At the bottom of the script
Float:RandomFloat()
{
    new Float:rand = random() \ (random() % random() )
    return rand;
}
How to use it? Use CreateRandomObject() to spawn a random object in a random place in the map.
Hope I helped you. Or in french: "J'espиre que je t'ai aidй".
Reply


Messages In This Thread
Random spawn object - by Maker52130 - 25.08.2017, 17:09
Re: Random spawn object - by 10MIN - 25.08.2017, 17:30
Re: Random spawn object - by Maker52130 - 25.08.2017, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)