Scripting player items
#1

I am a noob at scripting but i want to give a player an item to use in a job or something like gems for mining or seeds for farming so when they go to hand them in for money etc they get paid.
But i just want to know how to make gems or seeds work in a script, it confuses me. Please help.
Reply
#2

You have to declare a variable.
For example
pawn Код:
new seeds[MAX_PLAYERS]; // you declare the variable seeds for a player
//You can use it as this:
seeds[playerid] = (seeds to put in a integrer.)
Reply
#3

ok so lets say someone typed /seeds at a pickup and i wanted them to get like 5 seeds how would i work it like that, like what would the line be like.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)