SetPlayerAttachedObject Help
#3

I will give you the idea:

on rand = random( 4 ), (change the 4 to number object of random you wish)

on the cases instead of objectid set the number of your object for the random.

On your top of your script
Quote:

new
rand = random( 4 ),
myobject
;
switch( rand )
{
case 0: objectid;
case 1: objectid:
case 2: objectid;
case 3: objectid;
}

then on your code:

SetPlayerAttachedObject(playerid, index, myobject, bla bla bla bla..); // myobject is your random objects number

Hope it helps D:
Reply


Messages In This Thread
SetPlayerAttachedObject Help - by alishvasis - 27.01.2014, 15:45
Re: SetPlayerAttachedObject Help - by jiwan - 27.01.2014, 15:57
Re: SetPlayerAttachedObject Help - by Lidor124 - 27.01.2014, 16:15

Forum Jump:


Users browsing this thread: 1 Guest(s)