Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
Hai, How would i do it so that when i touch a certain object or make contact with it. It gives me 10$ ?
Thanks Kyle
Posts: 30
Threads: 4
Joined: May 2009
Reputation:
0
CreatePickup(1212,2,2618.4897,-1732.8961,6.6417);
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
Its not a pickup i want its a object
Posts: 721
Threads: 25
Joined: Nov 2007
Reputation:
0
or you could use PlayerToPoint on the Object's coordinates, and then do whatever you want to do.
Posts: 30
Threads: 4
Joined: May 2009
Reputation:
0
Or:
new Cash;
public OnGameModeInit()
Cash = CreatePickup(1274,2,2498.9319,-1686.2655,12.9870);
public OnPlayerPickUpPickup(playerid, pickupid)
{
if (pickupid == Cash)
{
GameTextForPlayer(playerid,"~w~You just got 10 Dollars~w~!!!",5000,4);
GivePlayerMoney(playerid,10);
return 1;
}
Why do you want an object anyway?
Posts: 1,358
Threads: 89
Joined: Apr 2009
Reputation:
0
Why not just use it like a pickup? Easier to make for you
Posts: 314
Threads: 33
Joined: Apr 2009
Reputation:
0
You could make a object wherever you want, and make PlayerToPoint, and whenever player steps in that point he gets the 10$, simple as that.
Posts: 2,262
Threads: 260
Joined: Mar 2009
Reputation:
0
Is there a easier way to do it due to i have like 75 objects i need to apply it to.