SetPlayerAttachedObject Help
#1

How To Use Random SetPlayerAttachedObject ?

Pls Help Me TnX
Reply
#2

....
https://sampwiki.blast.hk/wiki/SetPlayerAttachedObject
Reply
#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


Forum Jump:


Users browsing this thread: 2 Guest(s)