19.04.2009, 12:32
Quote:
Originally Posted by Toniu_
There's plenty of ways to do it, you can do it in my way if you want...
At the top of your script , under all of these defines and includes add Код:
new info; Then OnGameModeInit add Код:
info = CreatePickup(1239,2,2227.3433,-1159.1433,25.7836); Код:
public OnPlayerPickUpPickup(playerid, pickupid) } if(pickupid == info) { SendClientMessage(playerid,0x00F600AA, "text of the message inside the brackets"); } return 1; } As I said there's plenty of ways to do it, I prefer this one |
I did by your way and then i get this warning compiling:
warning 209: function "OnPlayerPickUpPickup" should return a value
Thanks for your guys Attention