16.06.2011, 22:01
Hey all. I want to give people seeds. I have this on a timer.
Now when I have 50 seeds and someone comes online he has 50 seeds as well. How can I fix this?
pawn Код:
public GiveSeeds(playerid)
{
PlayerInfo[playerid][seeds] ++;
format(String,sizeof(String),"Youґve gained a seed. You now have %d seeds",PlayerInfo[playerid][seeds]);
SendClientMessage(playerid,COLOR_YELLOW,String);
SendClientMessage(playerid,COLOR_ORANGE,"You'll gain a seed each 15 minutes");
}