something like my onespot filterscript then
http://forum.sa-mp.com/index.php?topic=157116.0
change st to plantweed and mt to pickweed
youll want to start a timer under plantweed then
Код:
SetTimer("plantwait", (60000*30), 0);
plant[playerid]=1;
and a new somewhere outside
Код:
new plant[MAX_PLAYERS];
the function should simply change the variable plant back to 0
Код:
forward plantwait(playerid)
public plantwait(playerid){
plant[playerid]=0;
return 1;
}
then under your modified /mt command just add an if
Код:
if(plant[playerid] == 1){
MESSAGE HERE
}
else{
if player is near the plant allow picking
else message to say you arent near your plant
}
think you can work from that?
EDIT: you will probably need an anti replant to prevent multiple timers and multiple plants per player, only the last one planted coords will work though.